Add nginx reverse proxy docker config

This commit is contained in:
Jesper Hess 2018-06-24 15:17:35 +02:00
parent b7fb9dc360
commit d5d1e3e8cc
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,16 @@
---
version: '3'
services:
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
- external_services
container_name: nginx-proxy
networks:
external_services:
external: true

View file

@ -2,6 +2,12 @@
docker_network: docker_network:
name: external_services name: external_services
- name: setup nginx reverse proxy
docker_service:
project_name: nginx-proxy
definition:
"{{ lookup('file', 'composefiles/nginx-proxy.yml') | from_yaml }}"
- name: setup gitea - name: setup gitea
docker_service: docker_service:
project_name: gitea project_name: gitea