43 lines
1.1 KiB
YAML
43 lines
1.1 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
|
||
|
|
||
|
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"
|
||
|
|