-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 945 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 945 Bytes
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
version: '3.8'
services:
api:
build:
context: ./api
dockerfile: Dockerfile
ports:
- "8080:8080"
environment:
- DEV_MODE=true
- DEV_USER_ROLE=admin
- LOG_LEVEL=debug
- DB_DSN=file:/home/api/.cache/sochoa.dev/api.db?cache=shared&mode=rwc
volumes:
- api_cache:/home/api/.cache/sochoa.dev
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/api/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 5s
restart: unless-stopped
ui:
build:
context: ./ui
dockerfile: Dockerfile
ports:
- "5173:5173"
- "3000:3000"
environment:
- VITE_API_URL=http://api:8080 # Use service name for Docker network
volumes:
- ./ui:/app
- /app/node_modules
depends_on:
- api
restart: unless-stopped
volumes:
api_cache:
driver: local