43 lines
799 B
YAML
Executable file
43 lines
799 B
YAML
Executable file
services:
|
|
db:
|
|
image: postgres:16
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
environment:
|
|
POSTGRES_DB: locflow
|
|
POSTGRES_USER: locflow
|
|
POSTGRES_PASSWORD: locflow
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U locflow"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
web:
|
|
build: .
|
|
command: python manage.py runserver 0.0.0.0:8000
|
|
volumes:
|
|
- .:/app
|
|
ports:
|
|
- "8000:8000"
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
env_file:
|
|
- .env
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
volumes:
|
|
- ./frontend:/app
|
|
- /app/node_modules
|
|
- /app/.next
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
API_URL: http://web:8000
|
|
depends_on:
|
|
- web
|
|
|
|
volumes:
|
|
postgres_data:
|