Add environment blocks
Some checks are pending
Remote Deployment Pipeline / Run docker-compose remotely (Dev) (pull_request) Blocked by required conditions
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 (Prod) (pull_request) Has been skipped

This commit is contained in:
2025-11-11 10:59:57 +01:00
parent a07e8a8578
commit ff6ec619c5
5 changed files with 39 additions and 15 deletions

View File

@@ -11,11 +11,11 @@ services:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=testnetwork"
- "--providers.docker.constraints=Label(`env`, `pr`)"
- "--providers.docker.constraints=Label(`env`, `${ENV}`)"
- "--entryPoints.test.address=:80"
ports:
- "80:80"
- "8080:8080"
- "${PORT}:80"
- "8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
@@ -25,7 +25,7 @@ services:
networks:
- testnetwork
labels:
- "env=pr"
- "env=${ENV}"
- "traefik.enable=true"
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
- "traefik.http.routers.whoami.entrypoints=test"
@@ -37,7 +37,7 @@ services:
ports:
- "80"
labels:
- "env=pr"
- "env=${ENV}"
- "traefik.enable=true"
- "traefik.http.routers.test.rule=Host(`test.docker.localhost`)"
- "traefik.http.routers.test.entrypoints=test"