Fix Docker Compose paths - remove version warning and fix app context paths

This commit is contained in:
Stiftung Development
2025-09-09 22:52:02 +02:00
parent 950c513112
commit 40fe13e9ad

View File

@@ -1,16 +1,17 @@
version: '3.8'
services:
db:
image: postgres:15-alpine
restart: unless-stopped
environment:
environme beat:
build:
context: ../app
dockerfile: Dockerfile
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backups:/backups
- ../app/backups:/backups
deploy:
resources:
limits:
@@ -36,7 +37,7 @@ services:
web:
build:
context: ./app
context: ../app
dockerfile: Dockerfile
restart: unless-stopped
environment:
@@ -48,9 +49,9 @@ services:
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
volumes:
- ./app/media:/app/media
- ./app/static:/app/static
- ./backups:/app/backups
- ../app/media:/app/media
- ../app/static:/app/static
- ../app/backups:/app/backups
depends_on:
db:
condition: service_healthy
@@ -66,7 +67,7 @@ services:
worker:
build:
context: ./app
context: ../app
dockerfile: Dockerfile
restart: unless-stopped
command: celery -A core worker -l info --concurrency=2