forked from berty/berty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (97 loc) · 2.69 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
version: '3.7'
services:
daemon1:
container_name: testbot_daemon1
image: bertytech/berty:latest
restart: always
entrypoint: sh
network_mode: bridge
labels:
- 'traefik.enable=false'
- 'com.centurylinklabs.watchtower.enable=true'
- 'com.datadoghq.ad.logs=[{"source": "go", "service": "testbot-daemon1"}]'
# copy "clean" db into run, then start the daemon.
# be careful if you edit this command, it looks like multiline but will be joined inline.
command: -xec "
rm -rf /store/run;
cp -rf /store/clean /store/run;
env;
berty daemon
-config=/app/config1.txt
-store.dir=/store/run
-node.no-notif
-node.listeners=/ip4/0.0.0.0/tcp/9091/grpc
-p2p.swarm-listeners=/ip4/0.0.0.0/tcp/6002,/ip4/0.0.0.0/udp/6002/quic
-log.filters=*,-ipfs.*
-log.format=json
-node.disable-group-monitor
;"
deploy:
resources:
limits:
memory: 2000M
volumes:
- ./data/daemon1:/store
- .:/app
ports:
- 6002:6002
- 6002:6002/udp
daemon2:
container_name: testbot_daemon2
image: bertytech/berty:latest
restart: always
entrypoint: sh
network_mode: bridge
labels:
- 'traefik.enable=false'
- 'com.centurylinklabs.watchtower.enable=true'
- 'com.datadoghq.ad.logs=[{"source": "go", "service": "testbot-daemon2"}]'
# copy "clean" db into run, then start the daemon.
# be careful if you edit this command, it looks like multiline but will be joined inline.
command: -xec "
rm -rf /store/run;
cp -rf /store/clean /store/run;
env;
berty daemon
-config=/app/config2.txt
-store.dir=/store/run
-node.no-notif
-node.listeners=/ip4/0.0.0.0/tcp/9091/grpc
-p2p.swarm-listeners=/ip4/0.0.0.0/tcp/6003,/ip4/0.0.0.0/udp/6003/quic
-log.filters=*,-ipfs.*
-log.format=json
-node.disable-group-monitor
;"
volumes:
- ./data/daemon2:/store
- .:/app
deploy:
resources:
limits:
memory: 2000M
ports:
- 6003:6003
- 6003:6003/udp
bot:
container_name: testbot_bot
image: bertytech/berty:latest
restart: always
entrypoint: testbot
links:
- daemon1
- daemon2
network_mode: bridge
labels:
- 'traefik.enable=false'
- 'com.centurylinklabs.watchtower.enable=true'
- 'com.datadoghq.ad.logs=[{"source": "go", "service": "testbot-bot"}]'
command:
- -name1=TestBot
- -name2=TestBot Companion
- -addr1=daemon1:9091
- -addr2=daemon2:9091
- -debug
- -log-format=json
depends_on:
- daemon1
- daemon2