1 Star 0 Fork 0

Rich/OctBlog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose_no_swarm.yml 905 Bytes
一键复制 编辑 原始数据 按行查看 历史
Gevin 提交于 2018-04-24 16:39 . nginx serve static files
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:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/rich00/OctBlog.git
git@gitee.com:rich00/OctBlog.git
rich00
OctBlog
OctBlog
master

搜索帮助