Files
traefik/docker-compose.yaml
kovagoadi 634d3ac389
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (pull_request) Successful in 3s
Remote Deployment Pipeline / Create remote directory (pull_request) Successful in 8s
Remote Deployment Pipeline / Cleanup MR environment (pull_request) Has been skipped
Remote Deployment Pipeline / Sync repository files (pull_request) Successful in 15s
Remote Deployment Pipeline / Run docker-compose remotely (pull_request) Successful in 8s
Changed image
2025-11-11 10:25:26 +01:00

46 lines
1.1 KiB
YAML

services:
traefik:
image: "traefik:v3.4"
# container_name: "traefik"
restart: unless-stopped
security_opt:
- no-new-privileges:true
networks:
- testnetwork
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=testnetwork"
- "--providers.docker.constraints=Label(`env`, `pr`)"
- "--entryPoints.test.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
whoami:
image: "traefik/whoami"
restart: unless-stopped
networks:
- testnetwork
labels:
- "env=pr"
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
- "traefik.http.routers.whoami.entrypoints=test"
test:
image: nginx
restart: unless-stopped
networks:
- testnetwork
ports:
- "80"
labels:
- "env=pr"
- "traefik.enable=true"
- "traefik.http.routers.test.rule=Host(`test.docker.localhost`)"
- "traefik.http.routers.test.entrypoints=test"
networks:
testnetwork: