-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 853 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
41 lines (38 loc) · 853 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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- '8579:8579' # Server port
- '8580:8580' # Client port
volumes:
- sqlite_data:/app/data
environment:
- REDIS_URL=redis://redis:6379
- NODE_ENV=production
command: bun run start
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:3000/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
redis:
image: redis:alpine
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 1s
timeout: 1s
restart: unless-stopped
volumes:
redis_data:
sqlite_data: