2020-03-08 18:12:12 +00:00
|
|
|
version: "2.3"
|
2020-02-02 21:10:29 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
traefik:
|
2022-08-16 10:17:53 +01:00
|
|
|
image: traefik:v2.7
|
2022-01-15 23:44:06 +00:00
|
|
|
user: "{{ docker_user.id }}"
|
2020-09-05 18:27:04 +01:00
|
|
|
environment:
|
|
|
|
- CF_DNS_API_TOKEN={{ cloudflare_api_token }}
|
2020-02-02 21:10:29 +00:00
|
|
|
volumes:
|
2021-03-28 13:05:31 +01:00
|
|
|
- /tmp/traefik-logs:/var/log/traefik
|
2020-02-02 21:10:29 +00:00
|
|
|
- ./traefik:/etc/traefik
|
|
|
|
restart: unless-stopped
|
2022-01-15 23:44:06 +00:00
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
- "{{ private_ip }}:8080:8080"
|
|
|
|
depends_on:
|
|
|
|
- docker_proxy
|
2022-01-16 16:55:40 +00:00
|
|
|
- shenanigans
|
2022-01-15 23:44:06 +00:00
|
|
|
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
|
2022-06-20 21:25:13 +01:00
|
|
|
logging:
|
|
|
|
driver: none
|
2022-01-15 23:44:06 +00:00
|
|
|
|
2022-01-16 14:08:29 +00:00
|
|
|
shenanigans:
|
|
|
|
image: nginx:alpine
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /opt/traefik/nginx.conf:/etc/nginx/conf.d/default.conf:ro
|
|
|
|
networks:
|
|
|
|
- proxy_private
|
2022-06-20 21:25:13 +01:00
|
|
|
logging:
|
|
|
|
driver: none
|
2022-01-16 14:08:29 +00:00
|
|
|
|
2022-06-13 21:18:45 +01:00
|
|
|
certs:
|
|
|
|
image: slocomptech/traefik-cert-extract:latest
|
|
|
|
restart: unless-stopped
|
|
|
|
networks: []
|
|
|
|
volumes:
|
|
|
|
- ./traefik:/data:ro
|
|
|
|
- ./certs:/config/certs
|
2022-06-20 21:25:13 +01:00
|
|
|
logging:
|
|
|
|
driver: none
|
2022-06-13 21:18:45 +01:00
|
|
|
|
2022-01-15 23:44:06 +00:00
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|
|
|
|
proxy_private:
|
|
|
|
internal: true
|