forked from FerretDB/FerretDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
212 lines (197 loc) · 6.27 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
---
# This file is used for the development environment, not for running FerretDB in production.
services:
postgres:
build:
context: ./build/deps
dockerfile: postgres.Dockerfile
container_name: ferretdb_postgres
command: >
postgres
-c log_min_duration_statement=1000ms
-c log_min_error_statement=WARNING
-c log_min_messages=WARNING
-c max_connections=200
ports:
- 5432:5432
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# UTC−03:30/−02:30. Set to catch timezone problems.
- TZ=America/St_Johns
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_DB=ferretdb
postgres_secured:
build:
context: ./build/deps
dockerfile: postgres.Dockerfile
container_name: ferretdb_postgres_secured
command: >
postgres
-c log_min_duration_statement=1000ms
-c log_min_error_statement=WARNING
-c log_min_messages=WARNING
-c max_connections=200
ports:
- 5433:5432
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# UTC−03:30/−02:30. Set to catch timezone problems.
- TZ=America/St_Johns
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=ferretdb
mongodb:
build:
context: ./build/deps
dockerfile: ${MONGO_DOCKERFILE:-mongo6}.Dockerfile
container_name: ferretdb_mongodb
command: --config /etc/mongod.conf
ports:
- 47017:27017
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
volumes:
- ./build/certs:/etc/certs
- ./build/mongod.conf:/etc/mongod.conf
mongodb_secured:
build:
context: ./build/deps
dockerfile: ${MONGO_DOCKERFILE:-mongo6}.Dockerfile
container_name: ferretdb_mongodb_secured
command: --config /etc/mongod.conf
ports:
- 47018:27017
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- MONGO_INITDB_ROOT_USERNAME=username
- MONGO_INITDB_ROOT_PASSWORD=password
volumes:
- ./build/certs:/etc/certs
- ./build/mongod_secured.conf:/etc/mongod.conf
# for test scripts
legacy-mongo-shell:
build:
context: ./build/deps
dockerfile: legacy-mongo-shell.Dockerfile
container_name: ferretdb_legacy-mongo-shell
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
volumes:
- ./build/certs:/etc/certs
- ./build/legacy-mongo-shell/test.js:/legacy-mongo-shell/test.js
jaeger:
build:
context: ./build/deps
dockerfile: jaeger.Dockerfile
container_name: ferretdb_jaeger
ports:
- 16686:16686 # UI on http://127.0.0.1:16686/
- 14268:14268 # to receive spans from clients
trivy:
build:
context: ./build/deps
dockerfile: trivy.Dockerfile
container_name: ferretdb_trivy
volumes:
- .:/workdir
# for testing .deb and .rpm packages
ubuntu:
build:
context: ./build/deps
dockerfile: ubuntu2204.Dockerfile
container_name: ferretdb_ubuntu
platform: linux/amd64
volumes:
- ./tmp/debs:/debs
ubi:
build:
context: ./build/deps
dockerfile: ubi9.Dockerfile
container_name: ferretdb_ubi
platform: linux/amd64
volumes:
- ./tmp/rpms:/rpms
# for YAML files
prettier:
build:
context: ./build/deps
dockerfile: ferretdb-prettier.Dockerfile
container_name: ferretdb_ferretdb-prettier
volumes:
- .:/workdir
# for documentation
textlint:
build:
context: ./build/deps
dockerfile: ferretdb-textlint.Dockerfile
container_name: ferretdb_ferretdb-textlint
volumes:
- .:/workdir
markdownlint:
build:
context: ./build/deps
dockerfile: markdownlint.Dockerfile
container_name: ferretdb_markdownlint
volumes:
- .:/workdir
wrangler:
build:
context: ./build/deps
dockerfile: ferretdb-wrangler.Dockerfile
container_name: ferretdb_ferretdb-wrangler
ports:
- 8976:8976 # simplifies authentication for testing
environment:
- CLOUDFLARE_ACCOUNT_ID
- CLOUDFLARE_API_TOKEN
- WRANGLER_SEND_METRICS=false
# - WRANGLER_LOG=debug # TODO https://github.com/cloudflare/workers-sdk/issues/3073
volumes:
- .:/workdir # mount everything for wrangler to pick up branch name, commit hash, etc from git
docusaurus-docs:
build:
context: ./build/deps
dockerfile: docusaurus-docs.Dockerfile
container_name: ferretdb_docusaurus-docs
ports:
- 3000:3000
volumes:
- ./website/docs:/workdir/docusaurus-docs/docs:ro
- ./website/static:/workdir/docusaurus-docs/static:ro
- ./website/src/components:/workdir/docusaurus-docs/src/components:ro
- ./website/src/css:/workdir/docusaurus-docs/src/css:ro
# We copy intro.js to redirect from /intro (old default docs page) to the root docs page.
- ./website/src/pages/intro.js:/workdir/docusaurus-docs/src/pages/intro.js
- ./website/babel.config.js:/workdir/docusaurus-docs/babel.config.js:ro
- ./website/docusaurus.config.js:/workdir/docusaurus-docs/docusaurus.config.js:ro
- ./website/sidebars.js:/workdir/docusaurus-docs/sidebars.js:ro
- ./website/build:/workdir/docusaurus-docs/build:rw
docusaurus-blog:
build:
context: ./build/deps
dockerfile: docusaurus-docs.Dockerfile
container_name: ferretdb_docusaurus-blog
ports:
- 3001:3001
volumes:
- ./website/blog:/workdir/docusaurus-docs/blog:ro
- ./website/static:/workdir/docusaurus-docs/static:ro
- ./website/src/components:/workdir/docusaurus-docs/src/components:ro
- ./website/src/css:/workdir/docusaurus-docs/src/css:ro
- ./website/babel.config.js:/workdir/docusaurus-docs/babel.config.js:ro
- ./website/docusaurus.config-blog.js:/workdir/docusaurus-docs/docusaurus.config.js:ro
- ./website/sidebars.js:/workdir/docusaurus-docs/sidebars.js:ro
- ./website/build:/workdir/docusaurus-docs/build:rw