TP_JO2024/docker-compose.yaml

46 lines
1.4 KiB
YAML
Raw Normal View History

2024-03-27 14:17:05 +01:00
version: "3.3"
services:
traefik:
image: "traefik:v2.11"
container_name: "proxy"
command:
- "--log.level=DEBUG"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:8082"
ports:
- "8082:8082"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
athlete:
image: "jo2024/athlete"
container_name: "athlete-service"
build:
context: .
dockerfile: ./athlete/Dockerfile
labels:
- "traefik.enable=true"
- "traefik.http.routers.joueurs-service.entrypoints=web"
- "traefik.http.routers.joueurs.rule=PathPrefix(`/joueurs{regex:$$|/.*}`)"
- "traefik.http.routers.joueurs.middlewares=joueurs-stripprefix"
- "traefik.http.middlewares.joueurs-stripprefix.stripprefix.prefixes=/joueurs"
volumes:
- "athlete:/app/data"
discipline:
image: "jo2024/discipline"
container_name: "discipline-service"
build:
context: .
dockerfile: ./discipline/Dockerfile
labels:
- "traefik.enable=true"
- "traefik.http.routers.disciplines-service.entrypoints=web"
- "traefik.http.routers.disciplines.rule=PathPrefix(`/disciplines{regex:$$|/.*}`)"
- "traefik.http.routers.disciplines.middlewares=disciplines-stripprefix"
- "traefik.http.middlewares.disciplines-stripprefix.stripprefix.prefixes=/disciplines"
volumes:
- "athlete:/app/data"