Added env limitation
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (pull_request) Successful in 2s
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 18s
Remote Deployment Pipeline / Run docker-compose remotely (pull_request) Successful in 10s
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (pull_request) Successful in 2s
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 18s
Remote Deployment Pipeline / Run docker-compose remotely (pull_request) Successful in 10s
This commit is contained in:
@@ -11,6 +11,7 @@ services:
|
|||||||
- "--providers.docker=true"
|
- "--providers.docker=true"
|
||||||
- "--providers.docker.exposedbydefault=false"
|
- "--providers.docker.exposedbydefault=false"
|
||||||
- "--providers.docker.network=testnetwork"
|
- "--providers.docker.network=testnetwork"
|
||||||
|
- --providers.docker.constraints=Label(`env`, `pr`)
|
||||||
- "--entryPoints.test.address=:80"
|
- "--entryPoints.test.address=:80"
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
@@ -24,6 +25,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- testnetwork
|
- testnetwork
|
||||||
labels:
|
labels:
|
||||||
|
- "env=pr"
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
|
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
|
||||||
- "traefik.http.routers.whoami.entrypoints=test"
|
- "traefik.http.routers.whoami.entrypoints=test"
|
||||||
|
|||||||
Reference in New Issue
Block a user