Add nginx-proxy reverse proxy configuration #2

Merged
valberg merged 4 commits from reverseproxy into master 2018-06-24 15:55:45 +00:00
2 changed files with 22 additions and 0 deletions
Showing only changes of commit d5d1e3e8cc - Show all commits

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