-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (44 loc) · 972 Bytes
/
docker-compose.yml
File metadata and controls
50 lines (44 loc) · 972 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
44
45
46
47
48
49
50
version: "3.8"
services:
coderbot:
build:
context: .
dockerfile: Dockerfile
container_name: coderbot-instance
volumes:
- ./logs:/app/logs
- coderbot-media:/tmp/coderBOT_media
- ./.env:/app/.env:ro
restart: unless-stopped
tty: true
stdin_open: true
# Resource limits (adjust based on your needs)
deploy:
resources:
limits:
cpus: "2.0"
memory: 2G
reservations:
cpus: "0.5"
memory: 512M
# Security options
security_opt:
- no-new-privileges:true
# Network configuration
network_mode: "bridge"
# Health check (optional)
healthcheck:
test: ["CMD", "node", "-e", "process.exit(0)"]
interval: 60s
timeout: 10s
retries: 3
start_period: 60s
volumes:
coderbot-media:
driver: local
terminal_history:
driver: local
bot_workspace:
driver: local
gh_config:
driver: local