2026-01-18 14:28:21 +00:00
|
|
|
services:
|
2026-01-18 15:24:16 +00:00
|
|
|
fyp-django-dev:
|
2026-01-18 14:28:21 +00:00
|
|
|
container_name: fyp-django-dev
|
|
|
|
|
build:
|
|
|
|
|
context: ../../
|
|
|
|
|
dockerfile: compose/dev/django/Dockerfile
|
|
|
|
|
env_file:
|
|
|
|
|
- ../../.env
|
|
|
|
|
volumes:
|
|
|
|
|
- ../../:/app
|
|
|
|
|
ports:
|
|
|
|
|
- '0.0.0.0:8000:8000'
|
|
|
|
|
depends_on:
|
|
|
|
|
fyp-postgres-dev:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
fyp-node-dev:
|
|
|
|
|
condition: service_started
|
|
|
|
|
|
|
|
|
|
fyp-node-dev:
|
|
|
|
|
container_name: fyp-node-dev
|
|
|
|
|
build:
|
|
|
|
|
context: ../../
|
|
|
|
|
dockerfile: compose/dev/node/Dockerfile
|
|
|
|
|
environment:
|
|
|
|
|
NODE_ENV: development
|
|
|
|
|
CHOKIDAR_USEPOLLING: 'true'
|
|
|
|
|
stdin_open: true
|
|
|
|
|
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
|
|
|
|
|
- ../../package.json:/app/package.json:delegated
|
|
|
|
|
- ../../package-lock.json:/app/package-lock.json:delegated
|
|
|
|
|
- /app/node_modules
|
|
|
|
|
ports:
|
|
|
|
|
- '0.0.0.0:5173:5173'
|
|
|
|
|
|
|
|
|
|
fyp-postgres-dev:
|
|
|
|
|
container_name: fyp-postgres-dev
|
|
|
|
|
image: postgres:15-alpine
|
|
|
|
|
env_file:
|
|
|
|
|
- ../../.env
|
|
|
|
|
environment:
|
|
|
|
|
POSTGRES_HOST_AUTH_METHOD: trust
|
|
|
|
|
volumes:
|
2026-01-18 15:09:54 +00:00
|
|
|
- fyp_postgres_data:/var/lib/postgresql/data
|
2026-01-18 14:28:21 +00:00
|
|
|
ports:
|
|
|
|
|
- '0.0.0.0:5432:5432'
|
|
|
|
|
healthcheck:
|
2026-01-18 15:09:54 +00:00
|
|
|
test: ['CMD-SHELL', 'pg_isready -h 127.0.0.1 -p 5432 -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
|
|
|
|
|
interval: 5s
|
|
|
|
|
timeout: 3s
|
|
|
|
|
retries: 5
|
|
|
|
|
|
|
|
|
|
fyp-redis-dev:
|
|
|
|
|
container_name: fyp-redis-dev
|
|
|
|
|
image: redis:7-alpine
|
|
|
|
|
ports:
|
|
|
|
|
- '0.0.0.0:6379:6379'
|
|
|
|
|
volumes:
|
|
|
|
|
- fyp_redis_data:/data
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "redis-cli", "ping"]
|
2026-01-18 14:28:21 +00:00
|
|
|
interval: 5s
|
|
|
|
|
timeout: 3s
|
|
|
|
|
retries: 5
|
2026-01-18 15:24:16 +00:00
|
|
|
|
|
|
|
|
fyp-celery-dev:
|
|
|
|
|
container_name: fyp-celery-dev
|
|
|
|
|
build:
|
|
|
|
|
context: ../../
|
|
|
|
|
dockerfile: compose/dev/celery/Dockerfile
|
|
|
|
|
env_file:
|
|
|
|
|
- ../../.env
|
|
|
|
|
volumes:
|
|
|
|
|
- ../../:/app
|
|
|
|
|
depends_on:
|
|
|
|
|
fyp-redis-dev:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
fyp-postgres-dev:
|
|
|
|
|
condition: service_healthy
|
2026-01-18 14:28:21 +00:00
|
|
|
|
|
|
|
|
volumes:
|
2026-01-18 15:09:54 +00:00
|
|
|
fyp_postgres_data:
|
|
|
|
|
fyp_redis_data:
|