-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
327 lines (308 loc) · 10.5 KB
/
docker-compose.yml
File metadata and controls
327 lines (308 loc) · 10.5 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
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
---
# Keep in sync with CONTRIBUTING.md and configload.go.
services:
mongodb:
build:
context: ./build/deps
dockerfile: mongo.Dockerfile
command: --config /etc/mongod.conf
restart: on-failure
ulimits:
nproc: 64000
nofile:
soft: 64000
hard: 64000
ports:
- 37001:37001
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./build/mongod.conf:/etc/mongod.conf
mongodb-secured:
build:
context: ./build/deps
dockerfile: mongo.Dockerfile
command: --config /etc/mongod.conf
restart: on-failure
ulimits:
nproc: 64000
nofile:
soft: 64000
hard: 64000
ports:
- 37002:37002
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- MONGO_INITDB_ROOT_USERNAME=username
- MONGO_INITDB_ROOT_PASSWORD=password
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./build/mongod_secured.conf:/etc/mongod.conf
ferretdb-postgresql:
image: ghcr.io/ferretdb/ferretdb:1
restart: on-failure
depends_on: ["postgres"]
ports:
- 27001:27001
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:27001
- FERRETDB_HANDLER=postgresql
# use different database from ferretdb-postgresql-secured to avoid error
- FERRETDB_POSTGRESQL_URL=postgres://postgres_user:postgres_password@postgres:5432/dance?sslmode=disable
# - FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb-sqlite-replset:
image: ghcr.io/ferretdb/ferretdb:1
restart: on-failure
ports:
- 27002:27002
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:27002
- FERRETDB_HANDLER=sqlite
- FERRETDB_SQLITE_URL=file:/state/?_pragma=busy_timeout(20000)
- FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb-postgresql-secured:
image: ghcr.io/ferretdb/ferretdb:1
restart: on-failure
depends_on: ["postgres"]
ports:
- 27003:27003
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:27003
- FERRETDB_HANDLER=postgresql
# use different database from ferretdb-postgresql to avoid error
- FERRETDB_POSTGRESQL_URL=postgres://postgres_user:postgres_password@postgres:5432/postgres?sslmode=disable
- FERRETDB_TEST_ENABLE_NEW_AUTH=true
- FERRETDB_SETUP_USERNAME=username
- FERRETDB_SETUP_PASSWORD=password
- FERRETDB_SETUP_DATABASE=admin
# - FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb-sqlite-replset-secured:
image: ghcr.io/ferretdb/ferretdb:1
restart: on-failure
ports:
- 27004:27004
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:27004
- FERRETDB_HANDLER=sqlite
- FERRETDB_SQLITE_URL=file:/state/?_pragma=busy_timeout(20000)
- FERRETDB_TEST_ENABLE_NEW_AUTH=true
- FERRETDB_SETUP_USERNAME=username
- FERRETDB_SETUP_PASSWORD=password
- FERRETDB_SETUP_DATABASE=admin
- FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb2: # production build of the latest release
image: ${FERRETDB_IMAGE:-ghcr.io/ferretdb/ferretdb:latest}
restart: on-failure
depends_on: ["postgres-documentdb"]
ports:
- 47001:47001
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:47001
- FERRETDB_POSTGRESQL_URL=postgres://username:password@postgres-documentdb:5432/postgres?sslmode=disable
- FERRETDB_AUTH=false
# - FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb2-secured: # production build of the latest release with authentication enabled
image: ${FERRETDB_IMAGE:-ghcr.io/ferretdb/ferretdb:latest}
restart: on-failure
depends_on: ["postgres-documentdb"]
ports:
- 47002:47002
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:47002
- FERRETDB_POSTGRESQL_URL=postgres://username:password@postgres-documentdb:5432/postgres?sslmode=disable
- FERRETDB_AUTH=true
# - FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb2-dev: # development build of the latest release
image: ghcr.io/ferretdb/ferretdb-dev:latest
restart: on-failure
depends_on: ["postgres-documentdb-dev"]
ports:
- 47003:47003
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:47003
- FERRETDB_POSTGRESQL_URL=postgres://username:password@postgres-documentdb-dev:5432/postgres?sslmode=disable
- FERRETDB_AUTH=false
# - FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb2-dev-secured: # development build of the latest release with authentication enabled
image: ghcr.io/ferretdb/ferretdb-dev:latest
restart: on-failure
depends_on: ["postgres-documentdb-dev"]
ports:
- 47004:47004
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:47004
- FERRETDB_POSTGRESQL_URL=postgres://username:password@postgres-documentdb-dev:5432/postgres?sslmode=disable
- FERRETDB_AUTH=true
# - FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb2-branch: # production build of the `main` branch
image: ghcr.io/ferretdb/ferretdb-dev:main-prod
restart: on-failure
depends_on: ["postgres-documentdb-branch"]
ports:
- 47005:47005
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:47005
- FERRETDB_POSTGRESQL_URL=postgres://username:password@postgres-documentdb-branch:5432/postgres?sslmode=disable
- FERRETDB_AUTH=false
# - FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
ferretdb2-dev-branch: # development build of the `main` branch
image: ghcr.io/ferretdb/ferretdb-dev:main
restart: on-failure
depends_on: ["postgres-documentdb-dev-branch"]
ports:
- 47006:47006
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_TELEMETRY=disabled
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:47006
- FERRETDB_POSTGRESQL_URL=postgres://username:password@postgres-documentdb-dev-branch:5432/postgres?sslmode=disable
- FERRETDB_AUTH=false
# - FERRETDB_REPL_SET_NAME=rs0
extra_hosts:
- "host.docker.internal:host-gateway"
# Different FerretDB v1 instances must use different POSTGRES_DB to avoid error such as
# `relation "_ferretdb_database_metadata" already exists (SQLSTATE 42P07)`.
postgres:
image: postgres
restart: on-failure
environment:
# UTC−03:30/−02:30. Set to catch timezone problems.
- TZ=America/St_Johns
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgres_password
- POSTGRES_DB=dance
postgres-documentdb: # production build of the latest release
image: ${POSTGRES_DOCUMENTDB_IMAGE:-ghcr.io/ferretdb/postgres-documentdb:17}
restart: on-failure
ports:
- 5432:5432
environment:
# UTC−03:30/−02:30. Set to catch timezone problems.
- TZ=America/St_Johns
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
postgres-documentdb-dev: # development build of the latest release
image: ghcr.io/ferretdb/postgres-documentdb-dev:17
restart: on-failure
environment:
# UTC−03:30/−02:30. Set to catch timezone problems.
- TZ=America/St_Johns
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
postgres-documentdb-branch: # production build of the `ferretdb` branch
image: ghcr.io/ferretdb/postgres-documentdb-dev:17-ferretdb-prod
restart: on-failure
environment:
# UTC−03:30/−02:30. Set to catch timezone problems.
- TZ=America/St_Johns
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
postgres-documentdb-dev-branch: # development build of the `ferretdb` branch
image: ghcr.io/ferretdb/postgres-documentdb-dev:17-ferretdb
restart: on-failure
environment:
# UTC−03:30/−02:30. Set to catch timezone problems.
- TZ=America/St_Johns
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgres
mongosh:
build:
context: ./build/deps
dockerfile: mongo.Dockerfile
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./dumps:/dumps
legacy-mongo-shell:
build:
context: ./build/deps
dockerfile: legacy-mongo-shell.Dockerfile
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
extra_hosts:
- "host.docker.internal:host-gateway"
working_dir: /projects/mongo
volumes:
- ./projects/mongo:/projects/mongo
# for documentation
textlint:
build:
context: ./build/deps
dockerfile: ferretdb-textlint.Dockerfile
volumes:
- .:/workdir
markdownlint:
build:
context: ./build/deps
dockerfile: markdownlint.Dockerfile
volumes:
- .:/workdir