infrastructure/ansible/roles/traefik/files/docker-compose.yml
Jake Howard ddd6af21cf
All checks were successful
/ ansible (push) Successful in 2m55s
/ terraform (push) Successful in 33s
Allow Traefik to use DNS-01 challenge to Gandi
2023-04-23 20:26:37 +01:00

52 lines
1 KiB
YAML

version: "2.3"
services:
traefik:
image: traefik:v2.10
user: "{{ docker_user.id }}"
environment:
- CF_DNS_API_TOKEN={{ cloudflare_api_token }}
- GANDI_API_KEY={{ gandi_api_key }}
volumes:
- /tmp/traefik-logs:/var/log/traefik
- ./traefik:/etc/traefik
restart: unless-stopped
ports:
- 80:80
- 443:443
- "{{ private_ip }}:8080:8080"
depends_on:
- docker_proxy
networks:
- default
- traefik
- proxy_private
docker_proxy:
image: tecnativa/docker-socket-proxy:latest
restart: unless-stopped
environment:
- CONTAINERS=1
- INFO=1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- proxy_private
logging:
driver: none
certs:
image: slocomptech/traefik-cert-extract:latest
restart: unless-stopped
networks: []
volumes:
- ./traefik:/data:ro
- ./certs:/config/certs
logging:
driver: none
networks:
traefik:
external: true
proxy_private:
internal: true