forked from nspcc-dev/neofs-aio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
120 lines (113 loc) · 3.15 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
version: "2.4"
services:
morph:
image: nspccdev/neo-go:${NEOGO_VERSION}
container_name: morph
domainname: neofs
hostname: morph
network_mode: host
restart: always
stop_signal: SIGKILL
environment:
- ACC=/config/morph_chain.gz
volumes:
- ./vendor/morph_chain.gz:/config/morph_chain.gz
- ./morph/protocol.privnet.yml:/config/protocol.privnet.yml
- ./morph/node-wallet.json:/config/node-wallet.json
healthcheck:
test: [ "CMD-SHELL", "neo-go query committee -r http://127.0.0.1:30333 | grep 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2" ]
interval: 2s
timeout: 3s
retries: 5
start_period: 10s
ir:
image: nspccdev/neofs-aio:${AIO_VERSION}
container_name: ir
domainname: neofs
hostname: ir
network_mode: host
restart: on-failure
stop_signal: SIGKILL
entrypoint: /bin/neofs-ir
command: --config /config/config.yaml
healthcheck:
test: [ "CMD-SHELL", "/bin/neofs-cli control healthcheck --ir --endpoint localhost:16512 -c /config/cli-cfg.yaml | grep 'Health status: READY'" ]
interval: 2s
timeout: 3s
retries: 5
start_period: 20s
volumes:
- ./morph/node-wallet.json:/config/node-wallet.json
- ./ir/cli-cfg.yaml:/config/cli-cfg.yaml
- ./ir/config.yaml:/config/config.yaml
- ./vendor/locode_db:/config/locode.db
depends_on:
morph:
condition: service_healthy
sn:
image: nspccdev/neofs-aio:${AIO_VERSION}
domainname: neofs
hostname: sn
container_name: sn
restart: on-failure
network_mode: host
volumes:
- ./sn/cli-cfg.yaml:/config/cli-cfg.yaml
- ./sn/wallet.json:/config/wallet-sn.json
- ./sn/config.yaml:/config/config.yaml
- data:/data
stop_signal: SIGKILL
entrypoint: /bin/neofs-node
command: --config /config/config.yaml
healthcheck:
test: [ "CMD-SHELL", "/bin/neofs-cli control healthcheck --endpoint localhost:16513 -c /config/cli-cfg.yaml | grep 'Health status: READY'" ]
interval: 2s
timeout: 3s
retries: 5
start_period: 10s
depends_on:
ir:
condition: service_healthy
http_gw:
image: nspccdev/neofs-http-gw:${HTTPGW_VERSION}
domainname: neofs
hostname: http_gw
container_name: http_gw
restart: on-failure
network_mode: host
volumes:
- ./http/wallet.json:/config/wallet.json
stop_signal: SIGKILL
env_file: [ "./http/http.env" ]
depends_on:
- sn
rest_gw:
image: nspccdev/neofs-rest-gw:${RESTGW_VERSION}
domainname: neofs
hostname: rest_gw
container_name: rest_gw
restart: on-failure
network_mode: host
volumes:
- ./rest-gw/node-wallet.json:/config/wallet.json
stop_signal: SIGKILL
env_file: [ "./rest-gw/rest.env" ]
depends_on:
- sn
nginx_gw:
image: nginx:stable-alpine
domainname: neofs
hostname: nginx_gw
container_name: nginx_gw
restart: on-failure
network_mode: host
volumes:
- ./http/nginx.conf:/etc/nginx/nginx.conf
- cache:/cache
stop_signal: SIGKILL
depends_on:
- http_gw
volumes:
data:
cache: