-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
83 lines (77 loc) · 2.89 KB
/
docker-compose.yml
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
services:
signal-cli:
container_name: signal-cli
image: bbernhard/signal-cli-rest-api:latest
restart: always
stdin_open: true # docker run -i
tty: true # docker run -t
environment:
- MODE=json-rpc
- PORT=8181
ports:
- "8181:8181" #map docker port 8080 to host port 8080.
volumes:
- "signal-cli-data:/home/.local/share/signal-cli"
signal-bot:
container_name: turbo-bot
build: https://github.com/jamesoncollins/turbo-bot.git#main:docker_bot
restart: always
stdin_open: true # docker run -i
tty: true # docker run -t
depends_on:
- signal-cli
environment:
GIT_REPO_URL: https://github.com/jamesoncollins/turbo-bot.git
GIT_REPO_PATH: /root/git/turbo-bot/ # dont change this unless you change the volume below
GIT_REPO_BRANCH: main
SETUP_SCRIPT_NAME: setup.sh
entrypoint: ["/bin/bash", "-c"]
command: >
'
export SETUP_SCRIPT_URL="$${GIT_REPO_URL/\.git/}/raw/$${GIT_REPO_BRANCH}/$${SETUP_SCRIPT_NAME}"
echo SETUP_SCRIPT_URL is "$${SETUP_SCRIPT_URL}" && sleep 5 &&
echo cd && cd /tmp &&
echo curl -o $$SETUP_SCRIPT_NAME -sfL "$${SETUP_SCRIPT_URL}" && curl -o $$SETUP_SCRIPT_NAME -sfL "$${SETUP_SCRIPT_URL}" &&
echo chmod && chmod +x "$$SETUP_SCRIPT_NAME" &&
echo launch && ./"$$SETUP_SCRIPT_NAME"
'
volumes:
- signal-bot-data:/root/git/
signal-bot-devel:
container_name: turbo-bot-devel
build: https://github.com/jamesoncollins/turbo-bot.git#main:docker_bot
restart: always
stdin_open: true # docker run -i
tty: true # docker run -t
depends_on:
- signal-cli
environment:
GIT_REPO_URL: https://github.com/jamesoncollins/turbo-bot.git
GIT_REPO_PATH: /root/git/turbo-bot/ # dont change this unless you change the volume below
GIT_REPO_BRANCH: devel
SETUP_SCRIPT_NAME: setup.sh
entrypoint: ["/bin/bash", "-c"]
command: >
'
export SETUP_SCRIPT_URL="$${GIT_REPO_URL/\.git/}/raw/$${GIT_REPO_BRANCH}/$${SETUP_SCRIPT_NAME}"
echo SETUP_SCRIPT_URL is "$${SETUP_SCRIPT_URL}" && sleep 5 &&
echo cd && cd /tmp &&
echo curl -o $$SETUP_SCRIPT_NAME -sfL "$${SETUP_SCRIPT_URL}" && curl -o $$SETUP_SCRIPT_NAME -sfL "$${SETUP_SCRIPT_URL}" &&
echo chmod && chmod +x "$$SETUP_SCRIPT_NAME" &&
echo launch && ./"$$SETUP_SCRIPT_NAME"
'
volumes:
- signal-bot-devel-data:/root/git/
signal-bot-fs-editor:
container_name: signal-bot-fs-editor
build: https://github.com/jamesoncollins/turbo-bot.git#main:docker_bot
#restart: always
stdin_open: true # docker run -i
tty: true # docker run -t
volumes:
- signal-bot-devel-data:/root/git/devel
- signal-bot-data:/root/git/main
volumes:
signal-cli-data: # Named volume for persistence
signal-bot-data:
signal-bot-devel-data: