-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
36 lines (33 loc) · 813 Bytes
/
docker-compose.yaml
File metadata and controls
36 lines (33 loc) · 813 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
version: '3.8'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8082:8082"
environment:
- SECRET_KEY=${SECRET_KEY:-default_secret_key}
- API_KEY=${API_KEY:-glimpser}
- DATABASE_URL=${DATABASE_URL:-sqlite:////app/data/glimpser.db}
- CHATGPT_KEY=${CHATGPT_KEY:-}
- TZ=America/Chicago
- GLIMPSER_DATABASE_PATH=/app/data/glimpser.db
- IN_DOCKER=1
volumes:
- ./data:/app/data
- ./logs:/app/logs
healthcheck:
test: ["CMD", "sh", "-c", "curl -f http://localhost:8082/health?api_key=$API_KEY || exit 1"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
networks:
- glimpser_network
networks:
glimpser_network:
driver: bridge
volumes:
data:
logs: