Remove intermediate docker-gen.
This commit is contained in:
parent
2908007a62
commit
814304bc8d
@ -1,3 +0,0 @@
|
|||||||
FROM jwilder/docker-gen:latest
|
|
||||||
|
|
||||||
COPY ./nginx.tmpl /etc/docker-gen/templates/nginx.tmpl
|
|
@ -2,9 +2,8 @@ version: "2"
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
nginx:
|
nginx:
|
||||||
restart: always
|
|
||||||
image: nginx
|
image: nginx
|
||||||
container_name: nginx_proxy
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
@ -15,18 +14,17 @@ services:
|
|||||||
- /var/docker/proxy/vhost.d:/etc/nginx/vhost.d:ro
|
- /var/docker/proxy/vhost.d:/etc/nginx/vhost.d:ro
|
||||||
|
|
||||||
dockergen:
|
dockergen:
|
||||||
|
image: jwilder/docker-gen:latest
|
||||||
restart: always
|
restart: always
|
||||||
depends_on:
|
depends_on:
|
||||||
- nginx
|
- nginx
|
||||||
build: .
|
|
||||||
image: typename/docker-gen
|
|
||||||
command: -notify-sighup nginx_proxy -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
command: -notify-sighup nginx_proxy -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- nginx
|
- nginx
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
external:
|
|
||||||
name: nginxproxy
|
name: nginxproxy
|
||||||
|
Loading…
Reference in New Issue
Block a user