init: standalone Traefik config (replaces Coolify-managed coolify-proxy)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
networks:
|
||||
coolify:
|
||||
external: true
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v3.6
|
||||
container_name: traefik-test
|
||||
restart: "no"
|
||||
extra_hosts:
|
||||
- host.docker.internal:host-gateway
|
||||
networks:
|
||||
- coolify
|
||||
ports:
|
||||
- 127.0.0.1:8001:80
|
||||
- 127.0.0.1:8080:8080
|
||||
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
|
||||
command:
|
||||
- --configFile=/etc/traefik/traefik.yml
|
||||
- --api.insecure=true
|
||||
- --entrypoints.traefik.address=:8080
|
||||
@@ -0,0 +1,32 @@
|
||||
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
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
global:
|
||||
checkNewVersion: false
|
||||
sendAnonymousUsage: false
|
||||
|
||||
ping:
|
||||
entryPoint: http
|
||||
|
||||
api:
|
||||
dashboard: true
|
||||
insecure: false
|
||||
|
||||
log:
|
||||
level: INFO
|
||||
|
||||
entryPoints:
|
||||
http:
|
||||
address: :80
|
||||
http:
|
||||
encodeQuerySemicolons: true
|
||||
http2:
|
||||
maxConcurrentStreams: 250
|
||||
https:
|
||||
address: :443
|
||||
http:
|
||||
encodeQuerySemicolons: true
|
||||
http2:
|
||||
maxConcurrentStreams: 250
|
||||
http3: {}
|
||||
|
||||
providers:
|
||||
docker:
|
||||
watch: true
|
||||
network: coolify
|
||||
exposedByDefault: false
|
||||
file:
|
||||
directory: /traefik/dynamic/
|
||||
watch: true
|
||||
|
||||
certificatesResolvers:
|
||||
letsencrypt:
|
||||
acme:
|
||||
httpChallenge:
|
||||
entryPoint: http
|
||||
storage: /traefik/acme.json
|
||||
Reference in New Issue
Block a user