infrastructure/ansible/roles/traefik/files/docker-compose.yml

49 lines
997 B
YAML
Raw Normal View History

2020-02-02 21:10:29 +00:00
services:
traefik:
2024-01-03 22:00:39 +00:00
image: traefik:v2.11
user: "{{ docker_user.id }}"
environment:
2024-09-15 14:21:20 +01:00
- GANDIV5_PERSONAL_ACCESS_TOKEN={{ vault_gandi_personal_access_token }}
2020-02-02 21:10:29 +00:00
volumes:
- ./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:
2024-04-23 19:52:48 +01:00
image: lscr.io/linuxserver/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