version: "3" networks: blog_network: driver: bridge file_network: driver: bridge services: blog: depends_on: - blog-twikoo image: registry.cn-hangzhou.aliyuncs.com/offends/hexo:hexo-async-offends container_name: blog restart: always volumes: - /data/blog/data:/hexo/source/_posts networks: - blog_network blog-twikoo: image: imaegoo/twikoo:latest container_name: blog-twikoo restart: always volumes: - /data/blog/twikoo:/app/data environment: - TWIKOO_THROTTLE=1000 # - TWIKOO_PORT=4444 networks: - blog_network nginx-https: depends_on: - blog-twikoo - blog image: registry.cn-hangzhou.aliyuncs.com/offends/hexo:gateway-docker container_name: blog-nginx restart: always # network_mode: "host" volumes: - /data/blog/cert:/etc/nginx/conf.d/cert environment: - DOMAIN_NAME=blog.offends.cn ports: - "80:80" - "443:443" networks: - blog_network - file_network