Dynavera/compose/dev/docker-compose.yml

71 lines
1.6 KiB
YAML
Raw Normal View History

services:
2025-12-10 13:44:16 +00:00
fyp-redis:
image: redis:7-alpine
container_name: fyp-redis
ports:
- "0.0.0.0:6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
web:
build:
context: ../..
dockerfile: compose/dev/node/Dockerfile
environment:
NODE_ENV: development
CHOKIDAR_USEPOLLING: "true"
stdin_open: true
ports:
- "0.0.0.0:5173:5173"
volumes:
- ../../src:/app/src:delegated
- ../../index.html:/app/index.html:delegated
- ../../vite.config.ts:/app/vite.config.ts:delegated
- ../../tsconfig.json:/app/tsconfig.json:delegated
- ../../build:/app/build:delegated
- /app/node_modules
api:
build:
context: ../..
dockerfile: compose/dev/python/Dockerfile
ports:
- "0.0.0.0:8000:8000"
volumes:
- ../../:/app
- venv:/venv
2025-12-10 13:44:16 +00:00
environment:
CELERY_BROKER_URL: redis://fyp-redis:6379/0
2025-12-10 13:44:16 +00:00
DJANGO_SETTINGS_MODULE: config.settings
depends_on:
fyp-redis:
condition: service_healthy
web:
condition: service_started
2025-12-10 13:44:16 +00:00
celery:
build:
context: ../..
dockerfile: compose/dev/celery/Dockerfile
volumes:
- ../../:/app
- venv:/venv
2025-12-10 13:44:16 +00:00
- ${USERPROFILE}/.cache/gpt4all:/root/.cache/gpt4all:ro
environment:
CELERY_BROKER_URL: redis://fyp-redis:6379/0
2025-12-10 13:44:16 +00:00
DJANGO_SETTINGS_MODULE: config.settings
depends_on:
fyp-redis:
condition: service_healthy
2025-12-10 13:44:16 +00:00
volumes:
redis_data:
venv: