-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
106 lines (98 loc) · 2.49 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
version: "3.0"
services:
client:
build: ./client
restart: "always"
ports:
- "3000:3000"
client2:
build: ./client
ports:
- "3001:3001"
contract_api:
build: ./backend/python/middleLayer/contractApi
volumes:
- './backend/python/middleLayer/contractApi:/app'
ports:
- "5003:5000"
environment:
# - OEF_ADDRESS=oef-node
# - OEF_PORT=7500
- OEF_ADDRESS=oef.economicagents.com
- OEF_PORT=3333
- LEDGER_ADDRESS=ledger_node
- LEDGER_PORT=8100
garage_api:
build: ./backend/python/middleLayer/garageApi
volumes:
- './backend/python/middleLayer/garageApi:/app'
restart: "always"
ports:
- "5002:5000"
environment:
- OEF_ADDRESS=oef.economicagents.com
- OEF_PORT=3333
# - OEF_ADDRESS=oef-node
# - OEF_PORT=7500
- LEDGER_ADDRESS=ledger_node
- LEDGER_PORT=8100
driver_apis:
hostname: python_apis
build: ./backend/python/middleLayer/driverApi
restart: "always"
volumes:
- './backend/python/middleLayer/driverApi:/app'
ports:
- "5001:5001"
environment:
- OEF_ADDRESS=oef.economicagents.com
- OEF_PORT=3333
- LEDGER_ADDRESS=ledger_node
- LEDGER_PORT=8100
# python_apis:
# hostname: python_apis
# build: ./backend/python/
# volumes:
# - './backend/python:/app'
# ports:
# - "5001:5001"
# - "5002:5002"
# - "5003:5003"
# - "5004:5004"
# environment:
# - OEF_ADDRESS=oef.economicagents.com
# - OEF_PORT=3333
# - LEDGER_ADDRESS=ledger_node
# - LEDGER_PORT=8100
#
ledger_node:
hostname: ledger
restart: "always"
command: "./build/apps/constellation/constellation -standalone -block-interval 1000 -experimental synergetic,naive-synergetic-mining -port 8100"
build: ./ledger/
ports:
- "8100:8100"
oef-node:
image: "fetchai/oef-search:0.7"
restart: "always"
ports:
- "10000:10000"
- "20000:20000"
- "40000:40000"
- "7500:7500"
volumes:
- "./oef_node/:/config"
- "./oef_node/oef-logs:/logs/"
command:
- "/config/node_config.json"
healthcheck:
interval: 10s
retries: 5
test:
- "CMD-SHELL"
- "python3"
- "oef_healthcheck.py"
- "127.0.0.1"
- "10000"
timeout: 5s
restart: on-failure