33 lines
993 B
YAML
33 lines
993 B
YAML
networks:
|
|
coolify:
|
|
external: true
|
|
|
|
services:
|
|
traefik:
|
|
image: traefik:v3.6
|
|
container_name: coolify-proxy
|
|
restart: unless-stopped
|
|
extra_hosts:
|
|
- host.docker.internal:host-gateway
|
|
networks:
|
|
- coolify
|
|
ports:
|
|
- 127.0.0.1:80:80
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "wget -qO- http://localhost:80/ping || exit 1"]
|
|
interval: 4s
|
|
timeout: 2s
|
|
retries: 5
|
|
volumes:
|
|
- /opt/appdata/docker/docker-compose/traefik/traefik.yml:/etc/traefik/traefik.yml:ro
|
|
- /data/coolify/proxy/:/traefik
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
labels:
|
|
- traefik.enable=true
|
|
- traefik.http.routers.traefik.rule=Host(`traefik.reverseproxyserver.net`)
|
|
- traefik.http.routers.traefik.entrypoints=http
|
|
- traefik.http.routers.traefik.service=api@internal
|
|
- traefik.http.services.traefik.loadbalancer.server.port=8080
|