Initial traefik
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (push) Successful in 3s
Remote Deployment Pipeline / Create remote directory (push) Successful in 9s
Remote Deployment Pipeline / Cleanup MR environment (push) Has been skipped
Remote Deployment Pipeline / Sync repository files (push) Successful in 35s
Remote Deployment Pipeline / Run docker-compose remotely (push) Successful in 6s

This commit is contained in:
2025-11-04 10:27:16 +01:00
commit 0c0ccda1ec
2 changed files with 179 additions and 0 deletions

32
docker-compose.yaml Normal file
View File

@@ -0,0 +1,32 @@
services:
traefik:
image: "traefik:v3.4"
# container_name: "traefik"
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- proxy
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=proxy"
- "--entryPoints.web.address=:81"
ports:
- "81:81"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
whoami:
image: "traefik/whoami"
restart: unless-stopped
networks:
- proxy
labels:
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
- "traefik.http.routers.whoami.entrypoints=web"
networks:
proxy: