-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (78 loc) · 1.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
84 lines (78 loc) · 1.69 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
72
73
74
75
76
77
78
79
80
81
82
83
84
---
x-env: &env
DISPLAY: ":10"
TERM: xterm-256color
PUID: "${PUID:-1000}"
PGID: "${PGID:-1000}"
TZ: Europe/Lisbon
x-agent: &agent
image: ghcr.io/rcarmo/agentbox:latest
environment:
<<: *env
restart: unless-stopped
deploy:
resources:
limits:
cpus: '${CPU_LIMITS:-2}'
memory: '${MEMORY_LIMITS:-4G}'
privileged: true # Required for Docker-in-Docker
networks:
- the_matrix
services:
syncthing:
image: syncthing/syncthing:latest
container_name: agent-syncthing
hostname: sandbox
environment:
<<: *env
HOME: /var/syncthing/config
STGUIADDRESS: 0.0.0.0:8384
GOMAXPROCS: "2"
volumes:
- ./workspaces:/workspaces
- ./config:/var/syncthing/config
network_mode: host
restart: unless-stopped
cpuset: "0"
cpu_shares: 2
healthcheck:
test: curl -fkLsS -m 2 127.0.0.1:8384/rest/noauth/health | grep -o --color=never OK || exit 1
interval: 1m
timeout: 10s
retries: 3
toad:
<<: *agent
container_name: agent-toad
hostname: toad
ports:
- "8001:8000" # web service
volumes:
- config:/config
- local:/home/agent/.local
- ./workspaces/toad:/workspace
copilot:
<<: *agent
container_name: agent-copilot
hostname: copilot
ports:
- "8002:8000" # web service
volumes:
- config:/config
- local:/home/agent/.local
- ./workspaces/agentbox:/workspace
volumes:
config:
driver: local
driver_opts:
type: none
o: bind
device: ./home
local:
driver: local
driver_opts:
type: none
o: bind
device: ./home/.local
networks:
the_matrix:
driver: bridge