forked from data.coop/ansible
Add nginx reverse proxy docker config
This commit is contained in:
parent
b7fb9dc360
commit
d5d1e3e8cc
16
roles/docker/files/composefiles/nginx-proxy.yml
Normal file
16
roles/docker/files/composefiles/nginx-proxy.yml
Normal 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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue