add docker compose
This commit is contained in:
parent
8382956a96
commit
2866bfc510
1 changed files with 42 additions and 0 deletions
42
docker-compose.yaml
Normal file
42
docker-compose.yaml
Normal 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"
|
||||
|
Loading…
Reference in a new issue