Configuration du build dev pour le projet agenda_culturel

This commit is contained in:
Jean-Marie Favreau
2023-09-16 15:15:05 +02:00
parent 016a00bf2f
commit 7e5305b47d
16 changed files with 19 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ services:
- APP_NAME=${APP_NAME}
- APP_HOST=${APP_HOST}
- APP_PORT=${APP_PORT}
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
volumes:
- ./src:/usr/src/app/
- ./deployment/scripts:/app/deployment/scripts/
@@ -19,7 +20,7 @@ services:
depends_on:
db:
condition: service_healthy
command: [ "/bin/sh", "/app/deployment/scripts/backend/start.sh" ]
command: [ "/bin/bash", "/app/deployment/scripts/backend/start.sh" ]
db:
image: postgres:15.2-alpine
@@ -57,12 +58,12 @@ services:
- db
- redis
- backend
command: [ "/bin/sh", "/app/deployment/scripts/celery/start-worker.sh" ]
command: [ "/bin/bash", "/app/deployment/scripts/celery/start-worker.sh" ]
celery-beat:
<<: *celery-worker
container_name: "${APP_NAME}-celery-beat"
command: [ "/bin/sh", "/app/deployment/scripts/celery/start-beat.sh" ]
command: [ "/bin/bash", "/app/deployment/scripts/celery/start-beat.sh" ]
volumes:
postgres_data_dir: