-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
172 lines (163 loc) · 4.81 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
---
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: ${FERRETDB_IMAGE:-ferretdb-local}
restart: on-failure
depends_on: ["postgres"]
ports:
- 27001:27001
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:27001
- FERRETDB_HANDLER=postgresql
# use different database from ferretdb-postgresql-secured
- 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: ${FERRETDB_IMAGE:-ferretdb-local}
restart: on-failure
ports:
- 27002:27002
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- 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: ${FERRETDB_IMAGE:-ferretdb-local}
restart: on-failure
depends_on: ["postgres"]
ports:
- 27003:27003
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_LOG_LEVEL=error
- FERRETDB_LISTEN_ADDR=:27003
- FERRETDB_HANDLER=postgresql
# use different database from ferretdb-postgresql
- 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: ${FERRETDB_IMAGE:-ferretdb-local}
restart: on-failure
ports:
- 27004:27004
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- 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"
postgres:
image: ${POSTGRES_IMAGE:-postgres}
restart: on-failure
ports:
- 5432:5432
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
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