Files
knl_meowscendence/docker/docker-compose.yml
2025-07-18 14:11:54 +02:00

65 lines
1.3 KiB
YAML

name: ft_transcendence
services:
front:
container_name: transcendence-front
build:
dockerfile: docker/front/Dockerfile
context: ..
ports:
- ${OUT_PORT}:443
environment:
SERVER_NAME: localhost
depends_on:
user-api:
condition: service_started
auth-api:
condition: service_started
networks:
- front
environment:
- TZ=Europe/Paris
restart: unless-stopped
user-api:
container_name: transcendence-api-user
build:
dockerfile: docker/api-base/Dockerfile
context: ..
volumes:
- db-user:/db
networks:
- front
- back
environment:
- TZ=Europe/Paris
- API_TARGET=user
- JWT_SECRET=${JWT_SECRET}
restart: unless-stopped
auth-api:
container_name: transcendence-api-auth
build:
dockerfile: docker/api-base/Dockerfile
context: ..
volumes:
- db-auth:/db
networks:
- front
- back
environment:
- TZ=Europe/Paris
- API_TARGET=auth
- JWT_SECRET=${JWT_SECRET}
restart: unless-stopped
networks:
front:
name: transcendence-front
back:
name: transcendence-back
volumes:
db-auth:
name: transcendence-api-auth-db
db-user:
name: transcendence-api-user-db