Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3"
- services:
- sonarqube:
- image: sonarqube:community
- hostname: sonarqube
- restart: always
- container_name: sonarqube
- depends_on:
- - db
- environment:
- SONAR_JDBC_URL: jdbc:postgresql://db:5432/sonar
- SONAR_JDBC_USERNAME: sonar
- SONAR_JDBC_PASSWORD: sonar
- volumes:
- - sonarqube_data:/opt/sonarqube/data
- - sonarqube_extensions:/opt/sonarqube/extensions
- - sonarqube_logs:/opt/sonarqube/logs
- ports:
- - "8182:9000"
- deploy:
- resources:
- limits:
- cpus: "1"
- memory: 2048M
- db:
- image: postgres:13
- hostname: postgresql
- restart: always
- container_name: postgresql
- environment:
- POSTGRES_USER: sonar
- POSTGRES_PASSWORD: sonar
- POSTGRES_DB: sonar
- deploy:
- resources:
- limits:
- cpus: "1"
- memory: 2048M
- volumes:
- - postgresql:/var/lib/postgresql
- - postgresql_data:/var/lib/postgresql/data
- volumes:
- sonarqube_data:
- sonarqube_extensions:
- sonarqube_logs:
- postgresql:
- postgresql_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement