Compose-Examples/examples/sonarqube/docker-compose.yml

41 lines
1016 B
YAML
Raw Normal View History

2023-02-15 21:45:31 +00:00
services:
2023-02-15 21:45:31 +00:00
sonarqube:
2024-10-01 08:22:38 +00:00
image: sonarqube:lts-community
2023-02-15 21:45:31 +00:00
container_name: sonarqube
ports:
- 9000:9000 # WEB UI
expose:
- 9000
2023-02-15 21:45:31 +00:00
environment:
- sonar.jdbc.username=sonar
- sonar.jdbc.password=sonar
- sonar.search.javaAdditionalOpts=-Dbootstrap.system_call_filter=false
volumes:
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/logs:/opt/sonarqube/logs
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/data:/opt/sonarqube/data
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/sonarqube/extensions:/opt/sonarqube/extensions
2023-02-15 21:45:31 +00:00
db:
2024-10-01 08:22:38 +00:00
image: postgres:16-alpine
2023-02-15 21:45:31 +00:00
container_name: sonarqube_db
hostname: db
expose:
- 5432
2023-02-15 21:45:31 +00:00
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
volumes:
- pg_db:/var/lib/postgresql
- pg_data:/var/lib/postgresql/data
ulimits:
nofile:
soft: 65536
hard: 65536
volumes:
pg_db:
driver: local
pg_data:
driver: local