TP_JO2024/docker-compose.yaml
2024-03-27 15:31:11 +01:00

65 lines
2 KiB
YAML

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:
- "discipline:/app/data"
medaille:
image: "jo2024/medaille"
container_name: "medaille-service"
build:
context: .
dockerfile: ./medaille/Dockerfile
labels:
- "traefik.enable=true"
- "traefik.http.routers.medaille-service.entrypoints=web"
- "traefik.http.routers.medaille.rule=PathPrefix(`/medailles{regex:$$|/.*}`)"
- "traefik.http.routers.medaille.middlewares=medaille-stripprefix"
- "traefik.http.middlewares.medaille-stripprefix.stripprefix.prefixes=/medailles"
volumes:
- "medaille:/app/data"
volumes:
athlete:
discipline:
medaille: