forked from edenia/eosio-network-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
103 lines (102 loc) · 2.5 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
version: '3.5'
services:
bios:
build:
target: local-stage
context: ../
dockerfile: ./Dockerfile
container_name: bios
environment:
- EOS_PUB_KEY
- EOS_PRIV_KEY
volumes:
- ../services/bios:/opt/application
image: ${IMAGE_NAME}:${VERSION}
depends_on:
- "vault"
- "wallet"
validator1:
build:
target: local-stage
context: ../
dockerfile: ./Dockerfile
container_name: validator1
environment:
- EOS_PUB_KEY
- EOS_PRIV_KEY
volumes:
- ../services/validator1:/opt/application
image: ${IMAGE_NAME}:${VERSION}
#entrypoint: ["sh", "-c", "while true; do echo 42; sleep 5; done"]
#command: ["./wait-for-it.sh", "db:5432", "--", "python", "app.py"]
validator2:
build:
target: local-stage
context: ../
dockerfile: ./Dockerfile
container_name: validator2
environment:
- EOS_PUB_KEY
- EOS_PRIV_KEY
volumes:
- ../services/validator2:/opt/application
image: ${IMAGE_NAME}:${VERSION}
validator3:
build:
target: local-stage
context: ../
dockerfile: ./Dockerfile
container_name: validator3
environment:
- EOS_PUB_KEY
- EOS_PRIV_KEY
volumes:
- ../services/validator3:/opt/application
image: ${IMAGE_NAME}:${VERSION}
seed:
build:
target: local-stage
context: ../
dockerfile: ./Dockerfile
container_name: seed
volumes:
- ../services/seed:/opt/application
image: ${IMAGE_NAME}:${VERSION}
api-node:
build:
target: local-stage
context: ../
dockerfile: ./Dockerfile
container_name: api-node
volumes:
- ../services/api-node:/opt/application
image: ${IMAGE_NAME}:${VERSION}
ports:
- 80:80
wallet:
build:
target: local-stage
context: ../
dockerfile: ./Dockerfile
container_name: wallet
volumes:
- ../services/wallet:/opt/application
image: ${IMAGE_NAME}:${VERSION}
depends_on:
- "vault"
vault:
image: vault:1.4.3
ports:
- "8200:8200"
container_name: vault
volumes:
- /tmp/vault/file:/vault/file:rw
- ../services/vault/config:/vault/config:rw
cap_add:
- IPC_LOCK
entrypoint: vault server -config=/vault/config/vault.json
environment:
VAULT_API_ADDR: http://0.0.0.0:8200/
# VAULT_LOCAL_CONFIG: ${VAULT_LOCAL_CONFIG}
# VAULT_DEV_ROOT_TOKEN_ID: ${VAULT_DEV_ROOT_TOKEN_ID}
# VAULT_DEV_LISTEN_ADDRESS: 0.0.0.0:8200