ft_transcendence/docker-compose.yml

40 lines
630 B
YAML
Raw Normal View History

2023-11-23 10:43:30 -05:00
name: ft_transcendence
services:
django:
build: srcs/
image: django
networks:
- network
ports:
- "8000:8000"
container_name: django
restart: always
env_file: .env
depends_on:
2023-11-24 18:26:54 -05:00
db:
condition: service_healthy
restart: true
2023-11-23 10:43:30 -05:00
db:
image: postgres
volumes:
- db:/var/lib/postgresql/data
networks:
- network
container_name: db
restart: always
env_file: .env
2023-11-24 18:26:54 -05:00
healthcheck:
test: "pg_isready -U $POSTGRES_USER"
interval: 5s
timeout: 5s
retries: 5
2023-11-23 10:43:30 -05:00
volumes:
db:
networks:
network:
driver: bridge