Files
n3wt-school/docker-compose.yml
2025-06-01 14:31:02 +02:00

42 lines
739 B
YAML

services:
redis:
image: "redis:latest"
volumes:
- redis-data:/data
expose:
- 6379
environment:
- TZ=Europe/Paris
database:
image: "postgres:latest"
expose:
- 5432
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: school
TZ: Europe/Paris
backend:
build:
context: ./Back-End
ports:
- 8080:8080
volumes:
- ./Back-End:/Back-End
env_file: "./conf/backend.env"
links:
- "database:database"
- "redis:redis"
depends_on:
- redis
- database
command: python start.py
volumes:
postgres-data:
redis-data: