-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose.yml
149 lines (143 loc) · 3.16 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
version: '3.4'
networks:
host-exposed:
driver: bridge
inside:
internal: true
services:
autoheal:
container_name: neo-local_autoheal
depends_on:
- neo-faucet
- neo-cli-privatenet-1
- neo-python
- neo-scan
- postgres
environment:
- AUTOHEAL_CONTAINER_LABEL=autoheal
- AUTOHEAL_INTERVAL=5
- DOCKER_SOCK=/var/run/docker.sock
image: willfarrell/autoheal
networks:
- inside
restart: always
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
neo-cli-privatenet-1:
container_name: neo-cli-privatenet-1
environment:
NODE_NUMBER: 1
healthcheck:
interval: 30s
retries: 3
start_period: 60s
test:
- CMD
- bash
- '-c'
- /opt/healthcheck-node.sh
timeout: 10s
image: 'cityofzion/neo-local-privatenet:$NODE1_NEO_CLI_VERSION$BOOTSTRAP'
networks:
- inside
- host-exposed
labels:
autoheal: 'true'
ports:
- '20333:20333'
- '30333:30333'
restart: always
neo-faucet:
container_name: neo-faucet
depends_on:
- neo-scan
environment:
NEOSCAN: 'neo-scan:4000'
MIN_BLOCK: '1000'
GAS_REWARD: '1000s'
healthcheck:
interval: 30s
retries: 3
start_period: 20s
test:
- CMD
- bash
- '-c'
- exec 6<>/dev/tcp/127.0.0.1/4002
timeout: 10s
image: 'cityofzion/neo-local-faucet:latest'
labels:
autoheal: 'true'
links:
- 'neo-scan:4000'
networks:
- inside
- host-exposed
ports:
- '4002:4002'
volumes:
- >-
./container-override-files/neo-faucet/protocol.json:/usr/src/app/assets/protocol.json
restart: always
neo-python:
container_name: neo-python
depends_on:
- neo-cli-privatenet-1
- neo-scan
image: 'cityofzion/neo-python:v0.8.4'
networks:
- inside
- host-exposed
tty: true
volumes:
- './smart-contracts:/smart-contracts'
- './wallets:/wallets'
- >-
./container-override-files/neo-python/protocol.privnet.json:/neo-python/neo/data/protocol.privnet.json
neo-scan:
container_name: neo-scan
depends_on:
- postgres
- neo-cli-privatenet-1
environment:
DB_DATABASE: neoscan_prodv
DB_HOSTNAME: postgres
DB_PASSWORD: postgres
DB_USERNAME: postgres
NEO_SEEDS: >-
http://neo-cli-privatenet-1:30333
PORT: 4000
REPLACE_OS_VARS: 'true'
healthcheck:
interval: 30s
retries: 3
start_period: 20s
test:
- CMD
- bash
- '-c'
- exec 6<>/dev/tcp/127.0.0.1/4000
timeout: 10s
image: 'cityofzion/neoscan:latest'
labels:
autoheal: 'true'
links:
- 'neo-cli-privatenet-1:30333'
networks:
- inside
- host-exposed
ports:
- '4000:4000'
restart: always
postgres:
container_name: postgres
environment:
POSTGRES_DB: neoscan_prodv
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
expose:
- 5432
image: 'library/postgres:12-alpine'
networks:
- inside
restart: always