-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (38 loc) · 959 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
40
41
version: '3.3'
# ---
services:
sonar:
image: sonarqube:8.4-community
container_name: codaqube-sonar
networks:
- codaqube-sonar-network
ports:
- "9000:9000"
volumes:
- sonar_data:/opt/sonarqube/data
- sonar_extensions:/opt/sonarqube/extensions
- sonar_logs:/opt/sonarqube/logs
environment:
- SONAR_JDBC_URL=jdbc:postgresql://sonardb:5432/sonarqube
- SONAR_JDBC_USERNAME=${SONAR_DB_USERNAME}
- SONAR_JDBC_PASSWORD=${SONAR_DB_PASSWORD}
sonardb:
image: postgres
container_name: codaqube-sonardb
networks:
- codaqube-sonar-network
ports:
- "5432:5432"
volumes:
- sonardb_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=sonarqube
- POSTGRES_USER=${SONAR_DB_USERNAME}
- POSTGRES_PASSWORD=${SONAR_DB_PASSWORD}
networks:
codaqube-sonar-network:
volumes:
sonar_data:
sonar_extensions:
sonar_logs:
sonardb_data: