39 lines
920 B
YAML
39 lines
920 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
|
|
autoconf:
|
|
image: bunkerity/bunkerized-nginx-autoconf
|
|
# bunkerized-nginx runs as an unprivileged user with UID/GID 101
|
|
# don't forget to edit the permissions of the files and folders accordingly
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- /shared/confs:/etc/nginx
|
|
- /shared/letsencrypt:/etc/letsencrypt
|
|
- /shared/acme-challenge:/acme-challenge
|
|
- /shared/cache:/cache
|
|
environment:
|
|
- SWARM_MODE=yes
|
|
- API_URI=/ChangeMeToSomethingHardToGuess # must match API_URI from nginx
|
|
networks:
|
|
- net_config
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- "node.role==manager"
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
networks:
|
|
- net_config
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- "node.role==worker"
|
|
|
|
networks:
|
|
net_config:
|
|
external: true
|