forked from bwaldvogel/mongo-java-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
38 lines (35 loc) · 906 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
version: '2.1'
services:
mongodb:
image: mongo:5.0.18
container_name: mongo-java-server-test
tmpfs:
- /data:rw
ports:
- 127.0.0.1:27018:27017
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongo mongo:27017/test --quiet 1
interval: 10s
timeout: 5s
retries: 5
postgres:
image: postgres:9.6-alpine
container_name: postgres-mongo-java-server-test
tmpfs:
- /var/lib/postgresql/data:rw
environment:
- POSTGRES_USER=mongo-java-server-test
- POSTGRES_PASSWORD=mongo-java-server-test
- POSTGRES_DB=mongo-java-server-test
ports:
- 127.0.0.1:5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
sonarqube:
image: sonarqube
container_name: mongo-java-server-sonarqube
ports:
- 127.0.0.1:9000:9000