This commit is contained in:
AdrienLSH
2024-05-14 08:50:37 +02:00
parent 95f0097ce5
commit e308e8f012
231 changed files with 70 additions and 22 deletions

39
docker-compose.yml Normal file
View File

@ -0,0 +1,39 @@
name: ft_transcendence
services:
django:
build: django/
image: django
networks:
- network
ports:
- "8000:8000"
container_name: django
restart: always
env_file: .env
depends_on:
db:
condition: service_healthy
restart: true
db:
image: postgres
volumes:
- db:/var/lib/postgresql/data
networks:
- network
container_name: django-db
restart: always
env_file: .env
healthcheck:
test: "pg_isready -U $POSTGRES_USER"
interval: 5s
timeout: 5s
retries: 5
volumes:
db:
networks:
network:
driver: bridge