diff --git a/Sonar/compose.yaml b/Sonar/compose.yaml new file mode 100644 index 0000000..684b4d9 --- /dev/null +++ b/Sonar/compose.yaml @@ -0,0 +1,22 @@ +services: + www: + image: ictu/sonar:10.1.0 + environment: + - SONAR_JDBC_URL=jdbc:postgresql://db:5432/sonar + - SONAR_JDBC_USERNAME=sonar + - SONAR_JDBC_PASSWORD=sonar + - PROJECT_CODE=PROJ1 + - PROJECT_RULES=+csharpsquid:S110|max=6;-typescript:S1301 + ports: + - 9000:9000 + depends_on: + - db + db: + image: postgres:15.3 + environment: + - POSTGRES_USER=sonar + - POSTGRES_PASSWORD=sonar + - POSTGRES_HOST_AUTH_METHOD=scram-sha-256 + - POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256 + volumes: + - /data/db/postgresql_data:/var/lib/postgresql/data \ No newline at end of file