mirror of
https://github.com/Anrab35/SAE410_TP2.git
synced 2024-10-21 21:26:09 +02:00
71 lines
No EOL
1.6 KiB
YAML
71 lines
No EOL
1.6 KiB
YAML
version: "3.3"
|
|
|
|
services:
|
|
traefik:
|
|
image: "traefik:v2.11"
|
|
container_name: "traefik"
|
|
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"
|
|
networks:
|
|
- backend
|
|
|
|
docs:
|
|
image: "git.gnous.eu/anrab35/sae410_docs:latest"
|
|
container_name: "JO_docs"
|
|
networks:
|
|
- backend
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.docs.rule=PathPrefix(`/docs`)"
|
|
|
|
athletes:
|
|
image: "git.gnous.eu/anrab35/sae410_athletes:latest"
|
|
container_name: "JO_athletes"
|
|
networks:
|
|
- backend
|
|
volumes:
|
|
- "JO_athletes_data:/app/data:rw"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.athletes.rule=PathPrefix(`/athletes`)"
|
|
|
|
medals:
|
|
image: "git.gnous.eu/anrab35/sae410_medals:latest"
|
|
container_name: "JO_medals"
|
|
networks:
|
|
- backend
|
|
volumes:
|
|
- "JO_medals_data:/app/data:rw"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.medals.rule=PathPrefix(`/medals`)"
|
|
|
|
sports:
|
|
image: "git.gnous.eu/anrab35/sae410_sports:latest"
|
|
container_name: "JO_sports"
|
|
networks:
|
|
- backend
|
|
volumes:
|
|
- "JO_sports_data:/app/data:rw"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.sports.rule=PathPrefix(`/sports`)"
|
|
|
|
networks:
|
|
backend:
|
|
name: backend
|
|
external: false
|
|
|
|
volumes:
|
|
JO_athletes_data:
|
|
JO_medals_data:
|
|
JO_sports_data: |