-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
222 lines (213 loc) · 6.77 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
version: '3.5'
services:
postgres:
image: postgres
mem_limit: 2G
mem_reservation: 1G
cpus: 0.5
#container_name: postgres
restart: always
ports:
- 32769:5432
volumes:
- postgres:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password123
- POSTGRES_DB=DARE-Control
- POSTGRES_DB=myCoolDataDB
networks:
- communicating
rabbitmq:
image: rabbitmq:3-management-alpine
mem_limit: 512M
mem_reservation: 256M
cpus: 0.5
restart: unless-stopped
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
volumes:
# - ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
# - ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
- rabbitmq:/var/lib/rabbitmq/
adminer:
image: adminer
mem_limit: 256M
mem_reservation: 128M
cpus: 0.1
restart: always
ports:
- 8087:8080
networks:
- communicating
minio:
image: quay.io/minio/minio
mem_limit: 512M
mem_reservation: 256M
cpus: 0.1
restart: always
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio123
- MINIO_IDENTITY_OPENID_CONFIG_URL=https://auth2.ukserp.ac.uk/realms/Dare-Control/.well-known/openid-configuration
- MINIO_IDENTITY_OPENID_CLIENT_ID=Dare-Control-Minio
- MINIO_IDENTITY_OPENID_CLIENT_SECRET=MfjRrZJn6vL48MgCyoRn6H8Rr7sv02i0
- MINIO_IDENTITY_OPENID_DISPLAY_NAME=SSO_IDENTIFIER
- MINIO_IDENTITY_OPENID_SCOPES=openid
- MINIO_IDENTITY_OPENID_REDIRECT_URI_DYNAMIC=on
volumes:
- minio_data:/data
ports:
- 9000:9000
- 9001:9001
minio2:
image: quay.io/minio/minio
mem_limit: 512M
mem_reservation: 256M
cpus: 0.1
container_name: minio2
restart: always
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=minio123
- MINIO_IDENTITY_OPENID_CONFIG_URL=https://auth2.ukserp.ac.uk/realms/Dare-TRE/.well-known/openid-configuration
- MINIO_IDENTITY_OPENID_CLIENT_ID=Dare-TRE-Minio
- MINIO_IDENTITY_OPENID_CLIENT_SECRET=dZx08fCXVjonxBqg54CFvFv9MteoaqAT
- MINIO_IDENTITY_OPENID_DISPLAY_NAME=SSO_IDENTIFIER
- MINIO_IDENTITY_OPENID_SCOPES=openid
- MINIO_IDENTITY_OPENID_REDIRECT_URI_DYNAMIC=on
volumes:
- minio2_data:/data
ports:
- 9002:9000
- 9003:9001
seq:
image: datalust/seq:latest
mem_limit: 2G
mem_reservation: 1G
cpus: 0.5
container_name: seq
restart: always
ports:
- 5341:80
volumes:
- seq_data:/data
environment:
- ACCEPT_EULA=Y
opaservice:
image: openpolicyagent/opa:latest
restart: always
ports:
- 8181:8181
command:
- "run"
- "--server"
- "-c"
- "config.yaml"
networks:
- communicating
volumes:
- ./OPASettings/config.yaml:/config.yaml
# command:
# - "run"
# - "stuff/bundle.tar.gz"
#command:
# - "build"
# - "-b"
# - "--debug"
# - "stuff/"
# - "-o"
# - "stuff/bundle.tar.gz"
#networks:
# - communicating
#volumes:
# - ./OPASettings:/stuff:rw
#postgresHasura:
# image: postgres:15
# restart: always
# ports:
# - 32770:5432
# volumes:
# - postgresHasura:/var/lib/postgresql/data
# environment:
# POSTGRES_PASSWORD: postgrespassword
#graphql-engine:
# image: hasura/graphql-engine
# ports:
# - "8080:8080"
# restart: always
# environment:
# ## postgres database to store Hasura metadata
# HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:password123@postgres:5432/postgres
# ## this env var can be used to add the above postgres database to Hasura as a data source. this can be removed/updated based on your needs
# PG_DATABASE_URL: postgres://postgres:password123@postgres:5432/postgres
# ## enable the console served by server
# HASURA_GRAPHQL_ENABLE_CONSOLE: "true" # set to "false" to disable console
# ## enable debugging mode. It is recommended to disable this in production
# HASURA_GRAPHQL_DEV_MODE: "true"
# HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
# ## uncomment next line to run console offline (i.e load console assets from server instead of CDN)
# # HASURA_GRAPHQL_CONSOLE_ASSETS_DIR: /srv/console-assets
# ## uncomment next line to set an admin secret
# # HASURA_GRAPHQL_ADMIN_SECRET: myadminsecretkey
# HASURA_GRAPHQL_METADATA_DEFAULTS: '{"backend_configs":{"dataconnector":{"athena":{"uri":"http://data-connector-agent:8081/api/v1/athena"},"mariadb":{"uri":"http://data-connector-agent:8081/api/v1/mariadb"},"mysql8":{"uri":"http://data-connector-agent:8081/api/v1/mysql"},"oracle":{"uri":"http://data-connector-agent:8081/api/v1/oracle"},"snowflake":{"uri":"http://data-connector-agent:8081/api/v1/snowflake"}}}}'
# POSTGRSS_LOGIN: 'postgres://postgres:password123@postgres:5432/myCoolDataDB'
# HASURA_GRAPHQL_AUTH_HOOK: 'http://host.docker.internal:5269/api/HasuraAuthentication'
# HASURA_GRAPHQL_ADMIN_SECRET: 'ohCOOl'
# networks:
# - communicating
# depends_on:
# data-connector-agent:
# condition: service_healthy
#data-connector-agent:
# image: hasura/graphql-data-connector
# restart: always
# ports:
# - 8081:8081
# environment:
# QUARKUS_LOG_LEVEL: ERROR # FATAL, ERROR, WARN, INFO, DEBUG, TRACE
# ## https://quarkus.io/guides/opentelemetry#configuration-reference
# QUARKUS_OPENTELEMETRY_ENABLED: "false"
# ## QUARKUS_OPENTELEMETRY_TRACER_EXPORTER_OTLP_ENDPOINT: http://jaeger:4317
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8081/api/v1/athena/health"]
# interval: 5s
# timeout: 10s
# retries: 5
# start_period: 5s
# networks:
# - communicating
# control:
# image: harbor.ukserp.ac.uk/dare/control:1.0.0
# restart: always
# ports:
# - 8088:80
# environment:
# CONNECTIONSTRINGS__DEFAULTCONNECTION: "Server=postgres;Port=32769;Database=DARE-Control;UserId=postgres;Password=password123;"
######################################################
# VOLUME
######################################################
volumes:
postgres:
driver: local
#postgresHasura:
# driver: local
minio_data:
driver: local
minio2_data:
driver: local
seq_data:
driver: local
rabbitmq:
driver: local
######################################################
# networks
######################################################
networks:
communicating:
driver: bridge