-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
71 lines (64 loc) · 1.44 KB
/
docker-compose.yaml
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
version: '3.8'
services:
mongo:
image: "mongo:latest"
container_name: mongodb1
restart: always
ports:
- "27017:27017"
mongo-express:
image: mongo-express
container_name: mongo-express
ports:
- "8081:8081"
environment:
- ME_CONFIG_MONGODB_URL=mongodb://mongodb1:27017
depends_on:
- mongo
app:
build: .
container_name: store
depends_on:
- mongo
ports:
- 8080:8080
environment:
- SPRING_DATA_MONGODB_URI=mongodb://mongo:27017/store
seed:
build: ./mongo-seed
depends_on:
- mongo
#SonarQube
sonarqube:
image: sonarqube:lts
container_name: sonarqube
ports:
- "9000:9000"
environment:
SONARQUBE_JDBC_USERNAME: admin
SONARQUBE_JDBC_PASSWORD: admin
SONARQUBE_JDBC_URL: jdbc:postgresql://db:5432/sonar
depends_on:
- db
volumes:
- sonarqube_conf:/opt/sonarqube/conf
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins
db:
image: postgres:latest
container_name: db
ports:
- "5432:5432"
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=sonar
volumes:
- postgres-data:/var/lib/postgresql/data
volumes:
sonarqube_conf:
sonarqube_data:
sonarqube_extensions:
sonarqube_bundled-plugins:
postgres-data: