-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
40 lines (38 loc) · 995 Bytes
/
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
services:
postgres:
image: postgres:15.0-bullseye
ports:
- '20001:5432'
environment:
POSTGRES_PASSWORD: admin
POSTGRES_USER: admin
POSTGRES_DB: test_db
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U admin -d test_db" ]
interval: 10s
timeout: 5s
retries: 5
mongo:
image: mongo:7.0
ports:
- '20002:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
healthcheck:
test: [ "CMD-SHELL", "echo 'db.runCommand({ ping: 1 })' | mongosh mongodb://localhost:27017/test_db --quiet" ]
interval: 10s
timeout: 5s
retries: 5
elasticsearch:
image: elasticsearch:7.17.25
ports:
- '20003:9200'
environment:
discovery.type: single-node
ES_JAVA_OPTS: "-Xms1024m -Xmx1024m"
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:9200/_cat/health" ]
interval: 10s
timeout: 5s
retries: 5