2023-04-21 07:04:53 +00:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
name: traefik
|
|
|
|
|
|
|
|
services:
|
|
|
|
traefik:
|
|
|
|
image: "traefik:${traefik_version}"
|
|
|
|
container_name: "${traefik_name}"
|
|
|
|
ports:
|
2023-04-26 06:26:50 +00:00
|
|
|
- "${traefik_web_entry}:80"
|
2023-04-21 07:04:53 +00:00
|
|
|
{% if traefik_standalone and not traefik_http_only %}
|
2023-04-26 06:26:50 +00:00
|
|
|
- "${traefik_websecure_entry}:443"
|
2023-04-21 07:04:53 +00:00
|
|
|
{% endif %}
|
|
|
|
networks:
|
|
|
|
- traefik
|
|
|
|
labels:
|
|
|
|
- "traefik.http.routers.traefik.rule=Host(`{{ traefik_domain }}`)"
|
|
|
|
- "traefik.http.routers.traefik.service=api@internal"
|
|
|
|
- "traefik.docker.network=traefik"
|
2023-04-26 06:26:50 +00:00
|
|
|
- "traefik.enable=${traefik_dashboard}"
|
2023-04-21 07:04:53 +00:00
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- "{{ traefik_root }}/config:/etc/traefik"
|