/
docker-compose.yml
116 lines (110 loc) · 3 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
---
services:
postgresql:
image: ${FERRETDB_IMAGE:-ferretdb-local}
container_name: dance_postgresql
restart: unless-stopped
depends_on: ["postgres"]
ports:
- 27017:27017
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_HANDLER=postgresql
- FERRETDB_POSTGRESQL_URL=postgres://user@postgres:5432/dance
- FERRETDB_REPL_SET_NAME=rs0
- FERRETDB_TEST_ENABLE_NEW_AUTH=true
extra_hosts:
- "host.docker.internal:host-gateway"
sqlite:
image: ${FERRETDB_IMAGE:-ferretdb-local}
container_name: dance_sqlite
restart: unless-stopped
ports:
- 27017:27017
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
- FERRETDB_HANDLER=sqlite
- FERRETDB_SQLITE_URL=file:/state/?_pragma=busy_timeout(20000)
- FERRETDB_REPL_SET_NAME=rs0
- FERRETDB_TEST_ENABLE_NEW_AUTH=true
extra_hosts:
- "host.docker.internal:host-gateway"
postgres:
build:
context: ./build/deps
dockerfile: postgres.Dockerfile
container_name: dance_postgres
restart: unless-stopped
ports:
- 5432:5432
environment:
# UTC−03:30/−02:30. Set to catch timezone problems.
- TZ=America/St_Johns
- POSTGRES_USER=user
- POSTGRES_DB=dance
- POSTGRES_HOST_AUTH_METHOD=trust
mongodb:
build:
context: ./build/deps
dockerfile: mongo7.Dockerfile
command: --config /etc/mongod.conf
container_name: dance_mongodb
restart: unless-stopped
ulimits:
nproc: 64000
nofile:
soft: 64000
hard: 64000
ports:
- 27017:27017
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
# never started normally, used only for mongosh, mongodump, etc.
mongosh:
build:
context: ./build/deps
dockerfile: mongo7.Dockerfile
container_name: dance_mongosh
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
mongo:
build:
context: ./build/deps
dockerfile: mongo.Dockerfile
container_name: dance_mongo
environment:
# Always UTC+05:45. Set to catch timezone problems.
- TZ=Asia/Kathmandu
extra_hosts:
- "host.docker.internal:host-gateway"
working_dir: /tests/mongo
volumes:
- ./tests/mongo:/tests/mongo
# 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