forked from FerretDB/FerretDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 1.09 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
# This file is used for the development of FerretDB, not for actually running it.
---
version: '3.8'
services:
postgres:
image: postgres:14.2
container_name: ferretdb_postgres
ports:
- 127.0.0.1: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_HOST_AUTH_METHOD=trust
- POSTGRES_DB=ferretdb
volumes:
- test_db_postgres:/test_db/:ro
# for proxy mode and mongosh
mongodb:
image: mongo:5.0.6
container_name: ferretdb_mongodb
ports:
- 127.0.0.1:37017:27017
extra_hosts:
- 'host.docker.internal:host-gateway'
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
volumes:
- test_db_mongodb:/test_db/:ro
test_db:
image: aleksi/test_db:mongodb-values
container_name: ferretdb_test_db
volumes:
- test_db_postgres:/test_db/postgresql/pagila:ro
- test_db_mongodb:/test_db/mongodb:ro
volumes:
test_db_postgres:
test_db_mongodb: