Prod to use envs (#2)
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (push) Successful in 3s
Remote Deployment Pipeline / Create remote directory (push) Successful in 6s
Remote Deployment Pipeline / Cleanup MR environment (push) Has been skipped
Remote Deployment Pipeline / Sync repository files (push) Successful in 17s
Remote Deployment Pipeline / Run docker-compose remotely (push) Successful in 10s
All checks were successful
Remote Deployment Pipeline / Prepare deployment vars (push) Successful in 3s
Remote Deployment Pipeline / Create remote directory (push) Successful in 6s
Remote Deployment Pipeline / Cleanup MR environment (push) Has been skipped
Remote Deployment Pipeline / Sync repository files (push) Successful in 17s
Remote Deployment Pipeline / Run docker-compose remotely (push) Successful in 10s
Reviewed-on: #2 Co-authored-by: kovagoadi <kovagoadi@gmail.com> Co-committed-by: kovagoadi <kovagoadi@gmail.com>
This commit is contained in:
@@ -11,10 +11,11 @@ services:
|
|||||||
- "--providers.docker=true"
|
- "--providers.docker=true"
|
||||||
- "--providers.docker.exposedbydefault=false"
|
- "--providers.docker.exposedbydefault=false"
|
||||||
- "--providers.docker.network=proxy"
|
- "--providers.docker.network=proxy"
|
||||||
- "--entryPoints.web.address=:81"
|
- "--providers.docker.constraints=Label(`env`, `prod`)"
|
||||||
|
- "--entryPoints.web.address=:82"
|
||||||
ports:
|
ports:
|
||||||
- "81:81"
|
- "82:82"
|
||||||
- "8080:8080"
|
- "8081:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
||||||
|
|
||||||
@@ -24,6 +25,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
labels:
|
labels:
|
||||||
|
- "env=prod"
|
||||||
- "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=web"
|
- "traefik.http.routers.whoami.entrypoints=web"
|
||||||
|
|||||||
Reference in New Issue
Block a user