-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
48 lines (48 loc) · 1.02 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
services:
db:
image: postgres:15-alpine
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
POSTGRES_DB: captcha
healthcheck:
test: "pg_isready"
interval: 30s
timeout: 20s
retries: 5
logging:
driver: local
options:
max-size: 10M
cache:
image: redis:6-alpine
ports:
- 6379:6379
healthcheck:
test: "redis-cli ping | grep PONG"
interval: 15s
timeout: 10s
retries: 5
logging:
driver: local
options:
max-size: 10M
mongo:
image: mongo:6-focal
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: captcha
healthcheck:
test: "echo 'db.runCommand(\"ping\").ok' | mongosh mongodb://localhost:27017/test --quiet"
interval: 30s
timeout: 20s
retries: 5
logging:
driver: local
options:
max-size: 10M