Skip to content

Commit

Permalink
Update Docker Compose configuration file to V2
Browse files Browse the repository at this point in the history
  • Loading branch information
utarwyn committed May 26, 2024
1 parent da66cd4 commit 9a28b81
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Add support for SonarQube up to 10.5

### Changed

- Update Docker Compose configuration file to V2

## [1.5.0] - 2024-03-13

### Added
Expand Down
18 changes: 13 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
version: "3.3"
---
name: sonarqube_ecocode_javascript

services:
sonar:
image: sonarqube:10-community
container_name: sonar_ecocode
container_name: sonar_ecocode_javascript
ports:
- "9000:9000"
networks:
- sonarnet
depends_on:
- db
db:
condition: service_healthy
environment:
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonarqube
SONAR_ES_BOOTSTRAP_CHECKS_DISABLE: 'true'
SONAR_ES_BOOTSTRAP_CHECKS_DISABLE: "true"
volumes:
- type: bind
source: ./sonar-plugin/target/ecocode-javascript-plugin-1.5.1-SNAPSHOT.jar
Expand All @@ -24,7 +27,7 @@ services:

db:
image: postgres:12
container_name: postgresql_ecocode
container_name: postgresql_ecocode_javascript
networks:
- sonarnet
volumes:
Expand All @@ -34,6 +37,11 @@ services:
POSTGRES_PASSWORD: sonar
POSTGRES_DB: sonarqube
PGDATA: pg_data:/var/lib/postgresql/data/pgdata
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U sonar -d sonarqube" ]
interval: 5s
timeout: 5s
retries: 5

networks:
sonarnet:
Expand Down

0 comments on commit 9a28b81

Please sign in to comment.