-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (46 loc) · 1.26 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
49
version: "3.3"
services:
sonar:
image: sonarqube:10.0.0-community
container_name: sonar_ecocode
ports:
- "9000:9000"
networks:
- sonarnet
depends_on:
- db
environment:
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonarqube
SONAR_ES_BOOTSTRAP_CHECKS_DISABLE: 'true'
volumes:
- type: bind
source: ./html-plugin/target/ecocode-html-plugin-0.0.1-SNAPSHOT.jar
target: /opt/sonarqube/extensions/plugins/ecocode-html-plugin-0.0.1-SNAPSHOT.jar
- type: bind
source: ./css-plugin/target/ecocode-javascript-plugin-0.0.1-SNAPSHOT.jar
target: /opt/sonarqube/extensions/plugins/ecocode-css-plugin-0.0.1-SNAPSHOT.jar
- "extensions:/opt/sonarqube/extensions"
- "logs:/opt/sonarqube/logs"
- "data:/opt/sonarqube/data"
db:
image: postgres:12
container_name: postgresql_ecocode
networks:
- sonarnet
volumes:
- pg_data:/var/lib/postgresql/data
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
POSTGRES_DB: sonarqube
PGDATA: pg_data:/var/lib/postgresql/data/pgdata
networks:
sonarnet:
driver: bridge
volumes:
data:
logs:
extensions:
pg_data: