This repository has been archived on 2025-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
taal-academie.arree.bzh.old/compose.yml
2025-01-14 18:03:28 +01:00

34 lines
937 B
YAML

services:
postgres:
image: postgres:15-alpine
container_name: taal-academiearreebzh_postgres
volumes:
- ./volumes/postgres:/var/lib/postgresql/data:z
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
django:
build: ./django
container_name: taal-academiearreebzh_django
depends_on:
postgres:
condition: service_healthy
command: sh -c "python manage.py makemigrations &&
python manage.py migrate &&
python manage.py collectstatic --clear --noinput &&
gunicorn config.wsgi --bind 0.0.0.0:8001"
volumes:
- ./volumes/static:/django/static:z
restart: unless-stopped
nginx:
build: ./nginx
container_name: taal-academiearreebzh_nginx
depends_on:
- django
volumes:
- ./volumes/static:/django/static:z
restart: unless-stopped