membersystem/docker-compose.yml

37 lines
810 B
YAML
Raw Normal View History

services:
backend:
2021-12-13 19:44:09 +00:00
image: data_coop_membersystem:dev
build:
context: .
command: python /app/src/manage.py runserver 0.0.0.0:8000
tty: true
ports:
- "8000:8000"
volumes:
- ./:/app/
2021-12-13 19:44:09 +00:00
depends_on:
2024-07-14 19:19:32 +00:00
postgres:
condition: service_healthy
env_file:
2023-10-02 18:10:24 +00:00
- .env
postgres:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 5432:5432
env_file:
2023-10-02 18:10:24 +00:00
- .env
2024-07-14 19:19:32 +00:00
# This healthcheck has a large number of retries, this is currently based on the number of
# retries necessary to get the database running in GitHub Actions.
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -d postgres" ]
interval: 5s
timeout: 5s
retries: 30
volumes:
postgres_data: