-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (46 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
52 lines (46 loc) · 1.27 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
version: '3.8'
services:
chatvault:
build:
context: .
dockerfile: Dockerfile
container_name: chatvault
ports:
- "7734:7734"
volumes:
- chatvault_data:/app/data
environment:
# Server Configuration
- CHATVAULT_PORT=7734
- CHATVAULT_MAX_REQUEST_SIZE=10485760 # 10MB
- CHATVAULT_TIMEOUT=30s
- CHATVAULT_READ_TIMEOUT=15s
- CHATVAULT_WRITE_TIMEOUT=15s
# Database Configuration
- CHATVAULT_DB_PATH=/app/data/chat.db
- CHATVAULT_DB_MAX_CONNECTIONS=25
- CHATVAULT_DB_MAX_IDLE=5
- CHATVAULT_DB_CONN_MAX_LIFETIME=1h
# Rate Limiting
- CHATVAULT_RATE_LIMIT=100
- CHATVAULT_RATE_LIMIT_ENABLED=true
# CORS Configuration
- CHATVAULT_CORS_ORIGINS=*
- CHATVAULT_CORS_METHODS=GET,POST,PUT,DELETE,OPTIONS
- CHATVAULT_CORS_HEADERS=Content-Type,Authorization,X-User-ID
- CHATVAULT_CORS_MAX_AGE=3600
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:7734/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
networks:
- chatvault-network
volumes:
chatvault_data:
driver: local
networks:
chatvault-network:
driver: bridge