-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
114 lines (106 loc) · 2.7 KB
/
docker-compose.yml
File metadata and controls
114 lines (106 loc) · 2.7 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
version: '3'
services:
redis:
container_name: redis
image: redis
restart: always
volumes:
- catalyst-db:/data
catalyst_deamon:
container_name: catalyst_deamon
image: catalyst_deamon:latest
build:
context: .
dockerfile: ./images/deamon.Dockerfile
restart: always
command: ./daemon --data-dir blockchain --rpc-bind-ip 0.0.0.0 --enable-blockexplorer
volumes:
- catalyst-blockchain:/daemon/blockchain
ports:
- 17290:17290
- 17291:17291
expose:
- 17290
- 17291
catalyst_rpc_service: &rpc_service
container_name: catalyst_rpc_service
image: catalyst_rpc_service:latest
build:
context: .
dockerfile: ./images/rpc-service.Dockerfile
restart: always
command: ./rpc-service -w /wallet/${WALLET_FILE} -p ${WALLET_PASSWORD} --daemon-address ${DAEMON_ADDRESS} --daemon-port ${DAEMON_PORT} --rpc-legacy-security --bind-address 0.0.0.0 --bind-port 17280
volumes:
- catalyst-wallet:/wallet
ports:
- 17280:17280
depends_on:
- catalyst_deamon
catalyst_pool:
container_name: catalyst_pool
image: catalyst_pool:latest
build:
context: .
dockerfile: ./images/pool.Dockerfile
args:
TIME_ZONE: Asia/Yekaterinburg
environment:
- MODULE=ALL
ports:
- 4442:4442
- 4443:4443
- 4444:4444
- 8407:8407
expose:
- 4442
- 4443
- 4444
- 8407
depends_on:
- redis
- catalyst_rpc_service
catalyst_pool_site:
container_name: catalyst_pool_site
image: catalyst_www:latest
build:
context: .
dockerfile: ./images/website.Dockerfile
ports:
- 80:80
expose:
- 80
depends_on:
- catalyst_pool
catalyst_wallet:
<<: *rpc_service
container_name: catalyst_wallet
working_dir: /wallet
command: sh -c '[ -e ${WALLET_FILE} ] && /rpc-service/wallet --remote-daemon ${DAEMON_ADDRESS}:${DAEMON_PORT} --wallet-file ${WALLET_FILE} --password ${WALLET_PASSWORD} || /rpc-service/wallet --remote-daemon ${DAEMON_ADDRESS}:${DAEMON_PORT}'
volumes:
- catalyst-wallet:/wallet
depends_on:
- catalyst_deamon
backup:
ports:
- "666:22"
container_name: catalyst_backup
image: catalyst_backup:latest
build:
context: .
dockerfile: ./images/backup.Dockerfile
working_dir: /catalyst
volumes:
- catalyst-blockchain:/catalyst/blockchain
- catalyst-wallet:/catalyst/wallet
- catalyst-db:/catalyst/db
build:
build:
context: .
dockerfile: Dockerfile.Build
volumes:
catalyst-blockchain:
external: true
catalyst-wallet:
external: true
catalyst-db:
external: true