This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-test.yml
157 lines (143 loc) · 3.31 KB
/
docker-compose-test.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
150
151
152
153
154
155
156
version: '3.2'
# Environment variables here will override values in /config/config.ini
networks:
net_registry:
driver: bridge
apps:
driver: bridge
other_net_registry:
driver: bridge
services:
# REGISTRY DB AND APP
db_registry:
hostname: db_registry
image: postgres:13
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: registry
ports:
- 5432
volumes:
- ./registry/db/docker-entrypoint-initdb.d/init.sql:/docker-entrypoint-initdb.d/init.sql:z
networks:
- net_registry
app_registry:
hostname: app_registry
image: localhost:5000/beacon-network
depends_on:
- db_registry
volumes:
- ./tests/test_files:/testconfig
environment:
APP_HOST: "0.0.0.0"
APP_PORT: 8083
DB_HOST: db_registry
DB_PORT: 5432
BEACON_RUN_APP: registry
DEBUG: "true"
CONFIG_FILE: /testconfig/registry.ini
links:
- db_registry
ports:
- 8083:8083
networks:
- net_registry
- apps
# AGGREGATORAPP
app_aggregator:
hostname: app_aggregator
image: localhost:5000/beacon-network
volumes:
- ./tests/test_files:/testconfig
environment:
APP_HOST: "0.0.0.0"
APP_PORT: 5054
BEACON_RUN_APP: aggregator
DEBUG: "true"
CONFIG_FILE: /testconfig/aggregator.ini
ports:
- 5054:5054
networks:
- apps
other_db_registry:
hostname: other_db_registry
image: postgres:13
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
POSTGRES_DB: registry
ports:
- 5433:5432
volumes:
- ./registry/db/docker-entrypoint-initdb.d/init.sql:/docker-entrypoint-initdb.d/init.sql:z
networks:
- other_net_registry
other_registry:
hostname: other_registry
image: localhost:5000/beacon-network
depends_on:
- other_db_registry
volumes:
- ./tests/test_files:/testconfig
environment:
APP_HOST: "0.0.0.0"
APP_PORT: 8082
DB_HOST: other_db_registry
DB_PORT: 5432
BEACON_RUN_APP: registry
DEBUG: "true"
CONFIG_FILE: /testconfig/other_registry.ini
links:
- other_db_registry
ports:
- 8082:8082
networks:
- other_net_registry
- apps
# AGGREGATORAPP
other_aggregator:
hostname: other_aggregator
image: localhost:5000/beacon-network
volumes:
- ./tests/test_files:/testconfig
environment:
APP_HOST: "0.0.0.0"
APP_PORT: 5055
BEACON_RUN_APP: aggregator
DEBUG: "true"
CONFIG_FILE: /testconfig/other_aggregator.ini
ports:
- 5055:5055
networks:
- apps
bad_beacon:
hostname: bad_beacon
image: cscfi/beacon-python
environment:
HOST: "0.0.0.0"
PORT: 5052
DATABASE_URL: other_db_registry
DATABASE_USER: user
DATABASE_PASSWORD: pass
DATABASE_NAME: registry
ports:
- 5052:5052
networks:
- other_net_registry
- apps
extra_bad_beacon:
hostname: extra_bad_beacon
image: cscfi/beacon-python
environment:
HOST: "0.0.0.0"
PORT: 5053
DATABASE_URL: other_db_registry
DATABASE_USER: user
DATABASE_PASSWORD: pass
DATABASE_NAME: registry
ports:
- 5053:5053
networks:
- other_net_registry
- apps