From 2866bfc510bba294b5bfbdb5e939ddba0e7e0586 Mon Sep 17 00:00:00 2001 From: Xx_DrkLeo_xX Date: Wed, 27 Mar 2024 16:43:13 +0100 Subject: [PATCH] add docker compose --- docker-compose.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..157fe01 --- /dev/null +++ b/docker-compose.yaml @@ -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" +