-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
36 lines (35 loc) · 1 KB
/
docker-compose.dev.yml
File metadata and controls
36 lines (35 loc) · 1 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
services:
frontend-dev:
build:
context: ./frontend
dockerfile: Dockerfile
target: dev
args:
BASE_REGISTRY: ${BASE_REGISTRY:-docker.io}
NPM_REGISTRY: ${NPM_REGISTRY:-https://registry.npmjs.org}
container_name: researchos-frontend-dev
command: npm run dev -- --host 0.0.0.0 --port 3002
ports:
- "3002:3002"
volumes:
- ./frontend:/app
- pm_frontend_node_modules:/app/node_modules
environment:
- VITE_PORT=3002
- VITE_API_BASE=/api
- VITE_PROXY_TARGET=http://backend:8000
- VITE_USE_POLLING=true
- VITE_POLL_INTERVAL=300
- VITE_HMR_HOST=localhost
- VITE_HMR_PORT=3002
depends_on:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3002').then((resp) => process.exit(resp.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 30s
timeout: 5s
start_period: 20s
retries: 5
volumes:
pm_frontend_node_modules: