50 lines
850 B
YAML
50 lines
850 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
|
|
db:
|
|
image: postgres:15
|
|
environment:
|
|
POSTGRES_DB: vip_coordinator
|
|
POSTGRES_PASSWORD: changeme
|
|
volumes:
|
|
- postgres-data:/var/lib/postgresql/data
|
|
ports:
|
|
- 5432:5432
|
|
|
|
redis:
|
|
image: redis:7
|
|
ports:
|
|
- 6379:6379
|
|
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
target: development
|
|
environment:
|
|
DATABASE_URL: postgresql://postgres:changeme@db:5432/vip_coordinator
|
|
REDIS_URL: redis://redis:6379
|
|
ports:
|
|
- 3000:3000
|
|
depends_on:
|
|
- db
|
|
- redis
|
|
volumes:
|
|
- ./backend:/app
|
|
- /app/node_modules
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
target: development
|
|
ports:
|
|
- 5173:5173
|
|
depends_on:
|
|
- backend
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
|
|
volumes:
|
|
postgres-data:
|