38 lines
1.1 KiB
YAML
38 lines
1.1 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
traefik:
|
|
image: traefik:v3.6.5
|
|
container_name: traefik
|
|
restart: unless-stopped
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
networks:
|
|
- exposed
|
|
ports:
|
|
- 7080:80
|
|
- 7443:443
|
|
environment:
|
|
- HETZNER_API_TOKEN=${HETZNER_API_TOKEN}
|
|
- AUTH_STRING=${AUTH_STRING}
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
- ${PROJECT_PATH-$PWD}/traefik.yml:/traefik.yml:ro
|
|
- ${PROJECT_PATH-$PWD}/config:/config:ro
|
|
- traefik-certs:/certs
|
|
labels:
|
|
traefik.enable: true
|
|
|
|
traefik.http.routers.traefik-dashboard.entrypoints: https
|
|
traefik.http.routers.traefik-dashboard.rule: Host(`traefik.arpa.urmel.de`)
|
|
traefik.http.routers.traefik-dashboard.tls: "true"
|
|
traefik.http.routers.traefik-dashboard.tls.certresolver: hetzner
|
|
traefik.http.routers.traefik-dashboard.service: api@internal
|
|
traefik.http.routers.traefik-dashboard.middlewares: traefik-auth@file
|
|
|
|
volumes:
|
|
traefik-certs:
|
|
|
|
networks:
|
|
exposed: |