Initial commit.

This commit is contained in:
Mikael Capelle
2019-05-28 08:32:43 +00:00
commit b4f8a53594
5 changed files with 388 additions and 0 deletions

30
docker-compose.yml Normal file
View File

@@ -0,0 +1,30 @@
version: '2'
services:
nginx:
restart: always
image: nginx
container_name: nginx_proxy
ports:
- "80:80"
- "443:443"
volumes:
- /var/www
- /etc/nginx/conf.d
- /etc/letsencrypt:/etc/letsencrypt:ro
- /var/docker/proxy/vhost.d:/etc/nginx/vhost.d:ro
dockergen:
restart: always
depends_on:
- nginx
build: .
image: typename/docker-gen
command: -notify-sighup nginx_proxy -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
volumes_from:
- nginx
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
default:
external:
name: nginxproxy