Docker compose refactor

Added shell interpolation for environment variables
This commit is contained in:
Sonny Bakker 2025-05-05 15:02:03 +02:00
parent e96c6f3528
commit 10affeb32f
16 changed files with 298 additions and 287 deletions

View file

@ -1,18 +1,11 @@
volumes:
static-files:
node-modules:
services:
celery:
build:
target: development
volumes:
- ./src/:/app/src
django:
build:
build: &app-development-build
target: development
command: /app/.venv/bin/python /app/src/manage.py runserver 0.0.0.0:8000
command: uv run --no-sync -- /app/src/manage.py runserver 0.0.0.0:8000
ports:
- "${DJANGO_PORT:-8000}:8000"
volumes:
@ -21,12 +14,19 @@ services:
stdin_open: true
tty: true
celery:
build:
<<: *app-development-build
volumes:
- ./src/:/app/src
webpack:
build:
target: frontend-build
context: .
dockerfile: ./docker/webpack
args:
BUILD_ARG: "dev"
command: npm run build:watch
volumes:
- ./src/:/app/src
- static-files:/app/src/newsreader/static
- node-modules:/app/node_modules