2017-02-11 21:42:24 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
nginx:
|
|
|
|
image: nginx
|
|
|
|
container_name: nginx
|
|
|
|
volumes:
|
|
|
|
- nginx_conf:/etc/nginx/conf.d
|
2017-03-07 19:04:44 +00:00
|
|
|
- ../lib/ssl/dhparam.pem:/etc/nginx/dhparam/dhparam.pem:ro
|
2017-02-11 21:42:24 +00:00
|
|
|
|
|
|
|
dockergen:
|
|
|
|
image: jwilder/docker-gen
|
|
|
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl
|
|
|
|
- nginx_conf:/etc/nginx/conf.d
|
|
|
|
|
2017-02-17 00:09:53 +00:00
|
|
|
web:
|
|
|
|
image: web
|
2017-02-11 21:42:24 +00:00
|
|
|
container_name: whoami
|
2017-02-17 00:09:53 +00:00
|
|
|
expose:
|
|
|
|
- "80"
|
2017-02-11 21:42:24 +00:00
|
|
|
environment:
|
2017-02-17 00:09:53 +00:00
|
|
|
WEB_PORTS: 80
|
|
|
|
VIRTUAL_HOST: whoami.nginx.container.docker
|
2017-02-11 21:42:24 +00:00
|
|
|
|
|
|
|
volumes:
|
2017-03-07 19:04:44 +00:00
|
|
|
nginx_conf: {}
|