-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
43 lines (42 loc) · 1.11 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
43 lines (42 loc) · 1.11 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
services:
frontend-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: zenbit-frontend-dev
ports:
- "${FRONTEND_DEV_PORT:-5173}:5173"
volumes:
- ./src:/app/src
- ./public:/app/public
- ./index.html:/app/index.html
- ./vite.config.ts:/app/vite.config.ts
- ./tsconfig.json:/app/tsconfig.json
- ./tsconfig.app.json:/app/tsconfig.app.json
- ./tsconfig.node.json:/app/tsconfig.node.json
- /app/node_modules
environment:
- VITE_API_BASE_URL=${VITE_API_BASE_URL:-http://backend:3000}
- VITE_GOOGLE_CLIENT_ID=${VITE_GOOGLE_CLIENT_ID}
- VITE_MICROSOFT_CLIENT_ID=${VITE_MICROSOFT_CLIENT_ID}
- VITE_LINKEDIN_CLIENT_ID=${VITE_LINKEDIN_CLIENT_ID}
networks:
- app-network
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"--no-verbose",
"--tries=1",
"--spider",
"http://127.0.0.1:5173",
]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
networks:
app-network:
external: true