代码拉取完成,页面将自动刷新
version: '2'
services:
blog:
# restart: always
image: gevin/octblog:0.4
# ports:
# - "8000:8000"
# - "5000:5000"
links:
- mongo:mongo
volumes:
- blog-static:/usr/src/app/static
env_file: .env
environment:
- VIRTUAL_HOST=localhost
- VIRTUAL_PORT=8000
mongo:
# restart: always
image: mongo:3.2
volumes:
- /Users/gevin/projects/data/mongodb:/data/db
# ports:
# - "27017:27017"
blog-static-nginx:
# restart: always
image: nginx:stable-alpine
# ports:
# - "8000:80"
volumes:
- blog-static:/usr/share/nginx/html/static:ro
environment:
- VIRTUAL_HOST=localhost
- VIRTUAL_PORT=80
nginx-proxy:
# restart: always
image: jwilder/nginx-proxy:alpine
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
blog-static:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。