forked from keksiqc/ctrld-sync
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (28 loc) · 750 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (28 loc) · 750 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
services:
ctrld-sync:
build:
context: .
dockerfile: Dockerfile
container_name: ctrld-sync
# Pass environment variables
environment:
TOKEN: ${TOKEN:-}
PROFILE: ${PROFILE:-}
NO_COLOR: ${NO_COLOR:-}
JSON_LOG: ${JSON_LOG:-}
# Mount volumes for configuration and persistent data (optional)
volumes:
- ./cache:/app/.cache
# Prevent auto-restart on errors (useful for CLI tools)
restart: "no"
# Increase timeout for large sync operations
stop_grace_period: 30s
# Resource limits (adjust based on your system)
deploy:
resources:
limits:
cpus: "1"
memory: 512M
reservations:
cpus: "0.5"
memory: 256M