27 lines
680 B
YAML
27 lines
680 B
YAML
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
|
|
|
|
x-arcane:
|
|
tags:
|
|
- name: database
|
|
color: purple |