4 Commits

Author SHA1 Message Date
a9c73db45c feat: Added Traefik
- Added compose.yaml file containg also certs-dumper to extract certificates
- Added traefik.yaml configuration file
2026-02-01 00:28:58 +01:00
22352dd8a7 feat: Added .DS_Store to .gitignore 2026-02-01 00:24:05 +01:00
704ecf7024 revert 3202ede472
revert feat: Added CI Pipeline
- Lint the Docker Compose files using DCLinter Github Action
- Format the Docker Compose files with the 'compose_format' Python module
2026-01-30 21:19:27 +00:00
3202ede472 feat: Added CI Pipeline
Some checks failed
Lint and Format Docker Compose files / Docker Compose Lint (push) Has been cancelled
Lint and Format Docker Compose files / Docker Compose formatting (push) Has been cancelled
- Lint the Docker Compose files using DCLinter Github Action
- Format the Docker Compose files with the 'compose_format' Python module
2025-12-26 14:14:02 +01:00
4 changed files with 73 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
.DS_Store
*.env *.env

4
dist/traefik/.env.template vendored Normal file
View File

@@ -0,0 +1,4 @@
BASE_DOMAIN=example.com
SERVICE_DOMAIN=traefik.example.com
# admin:admin
DASHBOARD_HTPASSWORD=admin:$2b$10$1DxaLIdVmJVNcQUmMxdfiOjlnp2gDKiMQjpTNxagVJEoTGTUOfVnG

42
dist/traefik/compose.yaml vendored Normal file
View 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"

26
dist/traefik/traefik.yaml vendored Normal file
View File

@@ -0,0 +1,26 @@
api:
insecure: false
dashboard: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
providers:
docker:
exposedByDefault: false
certificatesResolvers:
letsencrypt:
acme:
email: YOUR_EMAIL@example.com
storage: /acme.json
httpChallenge:
entryPoint: web