Remove intermediate docker-gen.

This commit is contained in:
Mikaël Capelle 2023-06-04 19:07:13 +00:00
parent 2908007a62
commit 814304bc8d
2 changed files with 4 additions and 9 deletions

View File

@ -1,3 +0,0 @@
FROM jwilder/docker-gen:latest
COPY ./nginx.tmpl /etc/docker-gen/templates/nginx.tmpl

View File

@ -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