Spaces:
Build error
Build error
File size: 1,114 Bytes
5db257a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
version: '3.8'
services:
postgres:
image: ankane/pgvector:latest
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: career_app
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backend/migrations:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U user"]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: .
dockerfile: Dockerfile.dev.backend
ports:
- "8000:8000"
volumes:
- ./backend:/app/backend
- ./uploads:/app/uploads
environment:
- DATABASE_URL=postgresql://user:password@postgres:5432/career_app
- PYTHONUNBUFFERED=1
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
frontend:
build:
context: .
dockerfile: Dockerfile.dev.frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
volumes:
postgres_data: |