rm traefik-local
This commit is contained in:
@@ -1,65 +0,0 @@
|
||||
services:
|
||||
traefik-local:
|
||||
image: traefik:v3.5
|
||||
command:
|
||||
- --api.dashboard=true
|
||||
- --api.insecure=true
|
||||
- --ping=true
|
||||
- --entrypoints.web.address=:80
|
||||
- --entrypoints.websecure.address=:443
|
||||
- --entrypoints.websecure.http3=false
|
||||
- --entrypoints.web.http.redirections.entrypoint.to=websecure
|
||||
- --entrypoints.web.http.redirections.entrypoint.scheme=https
|
||||
- --providers.swarm=true
|
||||
- --providers.swarm.exposedByDefault=false
|
||||
- --providers.swarm.network=homelab
|
||||
- --providers.swarm.watch=true
|
||||
- --providers.file.directory=/etc/traefik/dynamic
|
||||
- --providers.file.watch=true
|
||||
- --log.level=DEBUG
|
||||
- --accesslog=true
|
||||
ports:
|
||||
- target: 80
|
||||
published: 80
|
||||
mode: host
|
||||
- target: 443
|
||||
published: 443
|
||||
mode: host
|
||||
- target: 8080
|
||||
published: 8083
|
||||
mode: host
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- /home/doc/projects/swarm-data/appdata/traefik/certificates:/certificates
|
||||
- /home/doc/projects/swarm/conf/traefik-local-conf/dynamic.yml:/etc/traefik/dynamic/dynamic.yml:ro
|
||||
networks:
|
||||
- homelab
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8080/ping"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 3
|
||||
start_period: 30s
|
||||
deploy:
|
||||
mode: replicated
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.hostname == p1
|
||||
resources:
|
||||
limits:
|
||||
memory: 512M
|
||||
cpus: '0.5'
|
||||
reservations:
|
||||
memory: 256M
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.traefik-local.rule=Host(`proxy.home.frostlabs.me`)"
|
||||
- "traefik.http.routers.traefik-local.entrypoints=websecure"
|
||||
- "traefik.http.routers.traefik-local.tls=true"
|
||||
- "traefik.http.routers.traefik-local.service=api@internal"
|
||||
- "traefik.http.services.traefik-local.loadbalancer.server.port=8080"
|
||||
|
||||
networks:
|
||||
homelab:
|
||||
external: true
|
||||
Reference in New Issue
Block a user