-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (66 loc) · 1.84 KB
/
docker-compose.yml
File metadata and controls
71 lines (66 loc) · 1.84 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
claude-relay:
image: claude-relay:latest
container_name: claude-relay
profiles: [relay]
networks:
- default
- recon_default
build:
context: .
dockerfile: Dockerfile.relay
environment:
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: "1"
volumes:
- ${HOME}/.claude:/root/.claude
- ${HOME}/.claude.json:/root/.claude.json:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:18082/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
pipeline:
build:
context: .
dockerfile: Dockerfile
env_file: .env
environment:
UPSHOT_CONFIG: /app/config.docker.yaml
volumes:
- upshot_data:/data
- ./blog/content/posts:/app/blog/content/posts
restart: "no"
networks:
- default
- recon_default
# One-shot: copies this project's cron file to the shared scheduler volume
cron-install:
image: alpine
volumes:
- scheduler-cron:/cron
- ./deploy/cron.d:/src:ro
command: sh -c "cp /src/* /cron/"
restart: "no"
# Shared scheduler — reads cron files from all projects via the shared volume.
# Activate with: docker compose --profile scheduler up -d scheduler
# Only one instance needed per host; whichever project starts it first wins.
scheduler:
image: docker:27-cli
profiles: [scheduler]
restart: unless-stopped
volumes:
- scheduler-cron:/etc/cron.d:ro
- /var/run/docker.sock:/var/run/docker.sock
- /usr/libexec/docker/cli-plugins:/usr/libexec/docker/cli-plugins:ro
- /root:/root
- /var/log:/var/log
command: sh -c "apk add --no-cache coreutils > /dev/null && crond -f -l 2"
volumes:
upshot_data:
scheduler-cron:
external: true
networks:
recon_default:
external: true