feat: Added Traefik
- Added compose.yaml file containg also certs-dumper to extract certificates - Added traefik.yaml configuration file
This commit is contained in:
42
dist/traefik/compose.yaml
vendored
Normal file
42
dist/traefik/compose.yaml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
networks:
|
||||
traefik-network:
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:v3.6.4
|
||||
container_name: traefik
|
||||
restart: unless-stopped
|
||||
dns:
|
||||
- 1.1.1.1
|
||||
- 8.8.8.8
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.dashboard.rule=Host(`${SERVICE_DOMAIN}`)"
|
||||
- "traefik.http.routers.dashboard.entrypoints=https"
|
||||
- "traefik.http.routers.dashboard.service=api@internal"
|
||||
- "traefik.http.routers.dashboard.tls.certresolver=letsencrypt"
|
||||
- "traefik.http.routers.dashboard.middlewares=dashboard-auth"
|
||||
- "traefik.http.middlewares.dashboard-auth.basicauth.users=${DASHBOARD_HTPASSWORD}"
|
||||
command:
|
||||
- "--log.level=DEBUG"
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./traefik.yaml:/traefik.yaml:ro
|
||||
- ./acme.json:/acme.json
|
||||
- ./certs:/certs
|
||||
networks:
|
||||
- traefik-network
|
||||
|
||||
traefik-certs-dumper:
|
||||
image: ldez/traefik-certs-dumper:v2.9.3
|
||||
container_name: traefik-certs-dumper
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./acme.json:/acme.json:ro
|
||||
- ./certs:/output
|
||||
environment:
|
||||
- DOMAIN=${BASE_DOMAIN}
|
||||
command: "file --version v2 --watch --source /acme.json --dest /output"
|
||||
Reference in New Issue
Block a user