-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
103 lines (99 loc) · 2.85 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
103 lines (99 loc) · 2.85 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: figaro-dev
services:
postgres:
image: postgres:16
container_name: figaro-dev-postgres
restart: unless-stopped
environment:
POSTGRES_DB: ${POSTGRES_DB:-figaro}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
ports:
- "${POSTGRES_HOST_PORT:-5433}:5432"
volumes:
- figaro_postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-postgres} -d ${POSTGRES_DB:-figaro}"]
interval: 5s
timeout: 5s
retries: 20
backend:
build:
context: .
dockerfile: Dockerfile.pydev
extra_hosts:
- "host.docker.internal:host-gateway"
args:
HTTP_PROXY: ${HTTP_PROXY:-}
HTTPS_PROXY: ${HTTPS_PROXY:-}
ALL_PROXY: ${ALL_PROXY:-}
NO_PROXY: ${NO_PROXY:-}
container_name: figaro-dev-backend
restart: unless-stopped
working_dir: /workspace
command: >
bash -lc "/opt/venv/bin/python -m uvicorn app.main:app
--reload
--app-dir apps/backend
--host 0.0.0.0
--port 8000"
environment:
ENVIRONMENT: development
DEBUG: "true"
ALL_PROXY: ""
all_proxy: ""
HTTP_PROXY: ""
http_proxy: ""
HTTPS_PROXY: ""
https_proxy: ""
NO_PROXY: localhost,localhost,postgres
no_proxy: localhost,localhost,postgres
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility
PROJECT_NAME: Figaro
API_PREFIX: /api/v1
FRONTEND_URL: http://localhost:5173
ALLOWED_ORIGINS: http://localhost:5173,http://localhost:5173,http://localhost
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_DB: ${POSTGRES_DB:-figaro}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_POOL_SIZE: "5"
POSTGRES_POOL_MAX_OVERFLOW: "10"
POSTGRES_POOL_TIMEOUT: "30"
POSTGRES_POOL_RECYCLE: "1800"
ports:
- "8000:8000"
gpus: all
volumes:
- ./:/workspace
- figaro_uv_cache:/root/.cache/uv
depends_on:
postgres:
condition: service_healthy
frontend:
image: node:20-bookworm
container_name: figaro-dev-frontend
restart: unless-stopped
working_dir: /workspace/apps/frontend
command: >
bash -lc "corepack enable
&& pnpm install --frozen-lockfile
&& pnpm dev --host 0.0.0.0 --port 5173"
environment:
VITE_API_BASE_URL: http://localhost:8000
CHOKIDAR_USEPOLLING: "true"
ports:
- "5173:5173"
volumes:
- ./:/workspace
- figaro_pnpm_store:/root/.local/share/pnpm/store
- figaro_frontend_node_modules:/workspace/apps/frontend/node_modules
depends_on:
- backend
volumes:
figaro_postgres_data:
figaro_uv_cache:
figaro_pnpm_store:
figaro_frontend_node_modules: