50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
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
|
|
|
|
swagger:
|
|
build: ./swagger/
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.swagger.rule=PathPrefix(`/ui`) || PathPrefix(`/openapi`)"
|
|
- "traefik.http.routers.swagger.entrypoints=web"
|
|
|
|
|
|
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"
|
|
|