-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (57 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
59 lines (57 loc) · 1.49 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
services:
whisper:
build:
context: .
dockerfile: Dockerfile.whisper
container_name: whisper-server
ports:
- "127.0.0.1:8080:8080" # Only accessible from localhost
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
deploy:
resources:
limits:
memory: 2G
cpus: '2.0'
reservations:
memory: 512M
cpus: '1.0'
networks:
- dailynotes-network
app:
build: .
container_name: dailynotes-app
ports:
- "3000:3000"
volumes:
- ./data:/root/data
environment:
- ENV=production
- PORT=3000
- LOG_LEVEL=info
- DB_PATH=/root/data/daily-notes.db
- GOOGLE_CLIENT_ID=${GOOGLE_CLIENT_ID}
- GOOGLE_CLIENT_SECRET=${GOOGLE_CLIENT_SECRET}
- GOOGLE_REDIRECT_URL=postmessage
- CORS_ORIGINS=${CORS_ORIGINS:-https://dailynotes.dev,https://www.dailynotes.dev}
- WHISPER_SERVER_URL=http://whisper:8080 # Internal Docker network
restart: unless-stopped
depends_on:
whisper:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- dailynotes-network
networks:
dailynotes-network:
driver: bridge