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>
34 lines
847 B
YAML
34 lines
847 B
YAML
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"
|
|
- "--providers.docker.constraints=Label(`env`, `prod`)"
|
|
- "--entryPoints.web.address=:82"
|
|
ports:
|
|
- "82:82"
|
|
- "8081:8080"
|
|
volumes:
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
|
|
whoami:
|
|
image: "traefik/whoami"
|
|
restart: unless-stopped
|
|
networks:
|
|
- proxy
|
|
labels:
|
|
- "env=prod"
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
|
|
- "traefik.http.routers.whoami.entrypoints=web"
|
|
|
|
networks:
|
|
proxy: |