-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexample.docker-compose.yml
100 lines (89 loc) · 2.27 KB
/
example.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.8'
services:
db:
image: redis:7.2.3-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning
volumes:
- ./data:/data
ports:
- 6379:6379
api:
hostname: api
build: ./api
restart: unless-stopped
env_file:
- .env
round-mover-predictalph:
hostname: round-mover-predictalph
build: .
restart: unless-stopped
command: yarn run manage testnet PredictPrice:PredictPriceALPH alephium
env_file:
- .env
depends_on:
- db
round-mover-predictbtc:
hostname: round-mover-predictbtc
build: .
restart: unless-stopped
command: yarn run manage testnet PredictPrice:PredictPriceBTC bitcoin
env_file:
- .env
depends_on:
- db
events-listener-predictbtc:
hostname: events-listener-predictbtc
build: .
restart: unless-stopped
volumes:
- ./data:/data
command: yarn run eventsListener testnet PredictPrice:PredictPriceBTC
env_file:
- .env
depends_on:
- db
events-listener-predictalph:
hostname: events-listener-predictalph
build: .
restart: unless-stopped
volumes:
- ./data:/data
command: yarn run eventsListener testnet PredictPrice:PredictPriceALPH
env_file:
- .env
depends_on:
- db
events-listener-predictrhone:
hostname: events-listener-predictrhone
build: .
restart: unless-stopped
volumes:
- ./data:/data
command: yarn run eventsListener testnet PredictChoice:PredictChoiceRhone
env_file:
- .env
depends_on:
- db
alephium:
image: alephium/alephium:latest
restart: "no"
logging:
driver: "local"
options:
max-size: "200m"
max-file: "30"
ports:
# 9973 (udp and tcp) is used for external p2p connection and must be exposed
- 9973:9973/tcp
- 9973:9973/udp
security_opt:
- no-new-privileges:true
volumes:
- ./alephium/alephium-data:/alephium-home/.alephium
# - ~/.alephium:/alephium-home/.alephium
- ./alephium/alephium-wallets:/alephium-home/.alephium-wallets
- ./alephium/user.conf:/alephium-home/.alephium/user.conf
healthcheck:
test: ["CMD", "curl", "http://127.0.0.1:12973/infos/self-clique"]
timeout: 45s