add docker compose

This commit is contained in:
Léo 2024-03-27 16:43:13 +01:00
parent 8382956a96
commit 2866bfc510

42
docker-compose.yaml Normal file
View file

@ -0,0 +1,42 @@
version: "3.3"
services:
api_athlete:
build: ./athlete/
labels:
- "traefik.enable=true"
- "traefik.http.routers.api_athlete.rule=PathPrefix(`/athlete`)"
- "traefik.http.routers.api_athlete.entrypoints=web"
volumes:
- ./data/:/app/data
api_medal:
build: ./medal/
labels:
- "traefik.enable=true"
- "traefik.http.routers.api_medal.rule=PathPrefix(`/medal`)"
- "traefik.http.routers.api_medal.entrypoints=web"
volumes:
- ./data/:/app/data
api_sport:
build: ./sport/
labels:
- "traefik.enable=true"
- "traefik.http.routers.api_sport.rule=PathPrefix(`/sport`)"
- "traefik.http.routers.api_sport.entrypoints=web"
volumes:
- ./data/:/app/data
reverse:
image: traefik:v3.0
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"