2019-04-25 10:03:36 +00:00
|
|
|
version: "3.7"
|
|
|
|
services:
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx
|
|
|
|
container_name: halo-nginx
|
|
|
|
hostname: halo-nginx
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
volumes:
|
|
|
|
- /etc/nginx/conf.d:/etc/nginx/conf.d
|
|
|
|
- /etc/nginx/vhost.d:/etc/nginx/vhost.d
|
|
|
|
- /usr/share/nginx/html:/usr/share/nginx/html
|
|
|
|
- /etc/nginx/certs:/etc/nginx/certs:ro
|
|
|
|
depends_on:
|
|
|
|
- halo
|
|
|
|
|
|
|
|
halo:
|
2019-05-11 15:06:05 +00:00
|
|
|
image: ruibaby/halo:latest-dev
|
2019-04-25 10:03:36 +00:00
|
|
|
container_name: halo
|
|
|
|
hostname: halo
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "8090:8090"
|
|
|
|
expose:
|
|
|
|
- "8090"
|
2019-05-11 15:06:05 +00:00
|
|
|
env_file:
|
|
|
|
- ./halo.env
|
2019-04-25 10:03:36 +00:00
|
|
|
volumes:
|
2019-05-11 02:10:54 +00:00
|
|
|
- ~/.halo:/root/.halo
|
2019-04-25 10:03:36 +00:00
|
|
|
|
|
|
|
docker-gen:
|
|
|
|
image: jwilder/docker-gen
|
|
|
|
container_name: docker-gen
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
- /etc/nginx/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
|
|
|
|
volumes_from:
|
|
|
|
- nginx
|
|
|
|
entrypoint: /usr/local/bin/docker-gen -notify-sighup nginx -watch -wait 5s:30s
|
|
|
|
/etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
|
|
|
|
|
|
|
letsencrypt-nginx-proxy-companion:
|
|
|
|
restart: always
|
|
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
|
|
container_name: letsencrypt-nginx-proxy-companion
|
|
|
|
volumes_from:
|
|
|
|
- nginx
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
- /etc/nginx/certs:/etc/nginx/certs:rw
|
|
|
|
environment:
|
|
|
|
- NGINX_DOCKER_GEN_CONTAINER=docker-gen
|