-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose-dev-example.yml
More file actions
227 lines (212 loc) · 5.77 KB
/
docker-compose-dev-example.yml
File metadata and controls
227 lines (212 loc) · 5.77 KB
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
223
224
225
226
227
version: "3.7"
services:
zendro-keycloak-postgres:
container_name: zendro-keycloak-postgres
image: postgres
volumes:
- keycloak_pg_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${KEYCLOAK_DATABASE_NAME}
POSTGRES_USER: ${KEYCLOAK_DATABASE_USER}
POSTGRES_PASSWORD: ${KEYCLOAK_DATABASE_PASSWORD}
networks:
zendro:
zendro-keycloak:
container_name: zendro-keycloak
image: quay.io/keycloak/keycloak:19.0.1
entrypoint: ["/opt/keycloak/bin/kc.sh", "start-dev"]
ports:
- 8081:8080
environment:
KC_DB: ${KEYCLOAK_DATABASE_VENDOR}
KC_DB_URL_HOST: ${KEYCLOAK_DATABASE_HOST}
KC_DB_URL_DATABASE: ${KEYCLOAK_DATABASE_NAME}
KC_DB_USERNAME: ${KEYCLOAK_DATABASE_USER}
KC_DB_SCHEMA: ${KEYCLOAK_DATABASE_SCHEMA}
KC_DB_PASSWORD: ${KEYCLOAK_DATABASE_PASSWORD}
KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN_USER}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
KC_HTTP_RELATIVE_PATH: ${KEYCLOAK_HTTP_RELATIVE_PATH}
KC_HOSTNAME: ${KEYCLOAK_HOSTNAME}
KC_HOSTNAME_PORT: ${KEYCLOAK_HOSTNAME_PORT}
depends_on:
- zendro-keycloak-postgres
networks:
zendro:
zendro-postgres:
container_name: zendro-postgres
image: postgres
environment:
POSTGRES_DB : zendro_development
POSTGRES_USER: zendro
POSTGRES_PASSWORD: zendro
volumes:
- zendro_db_data:/var/lib/postgresql/data
networks:
datastores:
ports:
- 1234:5432
zendro-mongodb:
image: mongo
container_name: zendro-mongodb
environment:
- MONGO_INITDB_ROOT_USERNAME=sciencedb
- MONGO_INITDB_ROOT_PASSWORD=sciencedb
- MONGO_INITDB_DATABASE=sciencedb_development
volumes:
- ./contexts/init-mongo.js:/docker-entrypoint-initdb.d/init-mongo.js:ro
ports:
- 27017:27017
networks:
datastores:
zendro-cassandra:
container_name: zendro-cassandra
build:
context: ./contexts
dockerfile: Dockerfile.cassandra
volumes:
- ./contexts/docker-entrypoint.sh.cassandra:/docker-entrypoint.sh
- ./contexts/cassandra-keyspace.cql:/docker-entrypoint-initdb.d/cassandra-keyspace.cql
ports:
- 9042:9042
environment:
- MAX_HEAP_SIZE=256M
- HEAP_NEWSIZE=128M
networks:
datastores:
zendro-minio:
image: minio/minio
container_name: zendro-minio
environment:
MINIO_ROOT_USER: sciencedb
MINIO_ROOT_PASSWORD: sciencedb
ports:
- 9000:9000
command: server /data
networks:
datastores:
zendro-presto:
image: prestodb/presto
container_name: zendro-presto
depends_on:
- zendro-postgres
volumes:
- ./contexts/postgresql.properties:/opt/presto-server/etc/catalog/postgresql.properties
ports:
- 8081:8080
networks:
datastores:
zendro-trino:
image: trinodb/trino
container_name: zendro-trino
depends_on:
- zendro-postgres
volumes:
- ./contexts/postgresql.properties:/etc/trino/catalog/postgresql.properties
ports:
- 8080:8080
networks:
datastores:
zendro-neo4j:
image: neo4j
container_name: zendro-neo4j
user: ${UID_GID}
ports:
- 7474:7474
- 7687:7687
volumes:
- ./import:/var/lib/neo4j/import
environment:
NEO4J_AUTH: neo4j/sciencedb
networks:
datastores:
zendro-graphql-server:
container_name: zendro-graphql-server
depends_on:
- zendro-keycloak
- zendro-postgres
- zendro-mongodb
- zendro-cassandra
- zendro-minio
- zendro-presto
- zendro-trino
- zendro-neo4j
build:
context: ./contexts
dockerfile: Dockerfile.graphql_server
ports:
- 3000:3000
volumes:
- ./graphql-server:/usr/graphql-server
# override default default config with Starterpack config
- ./config/data_models_storage_config.json:/usr/graphql-server/config/data_models_storage_config.json
- ./graphiql-auth/.env.development:/usr/graphiql-auth/.env.development
- ./graphiql-auth/.env.production:/usr/graphiql-auth/.env.production
- ./single-page-app/.env.development:/usr/single-page-app/.env.development
- ./single-page-app/.env.production:/usr/single-page-app/.env.production
# Await POSTGRES role and DB creation, migrate schema, then start web
# server:
networks:
zendro:
datastores:
command:
- /bin/sh
- -c
- |
npm install
node migrateDbAndStartServer.js dev
zendro-spa:
container_name: zendro-spa
# Workaround. See https://github.com/facebook/create-react-app/issues/8688
stdin_open: true
depends_on:
- zendro-graphql-server
build:
context: ./contexts
dockerfile: Dockerfile.spa
ports:
- 8080:8080
volumes:
- ./single-page-app:/usr/single-page-app
- ./data_model_definitions:/usr/data_model_definitions
networks:
zendro:
# Install dependencies and start single-page-app-server in development
# mode.
command:
- /bin/sh
- -c
- |
rm -rf .next
yarn install
yarn dev
zendro-graphiql:
container_name: zendro-graphiql
# Workaround. See https://github.com/facebook/create-react-app/issues/8688
stdin_open: true
depends_on:
- zendro-graphql-server
build:
context: ./contexts
dockerfile: Dockerfile.graphiql
ports:
- 7070:7070
volumes:
- ./graphiql-auth:/usr/graphiql-auth
# Install dependencies and start single-page-app-server in development
# mode.
networks:
zendro:
command:
- /bin/sh
- -c
- |
rm -rf .next
yarn install
yarn dev
volumes:
zendro_db_data:
keycloak_pg_data:
networks:
zendro:
datastores: