Skip to content

Instantly share code, notes, and snippets.

@guiferrpereira
Created February 8, 2020 13:03
Show Gist options
  • Save guiferrpereira/e597c2656ff09e8a1c8ab16332772d92 to your computer and use it in GitHub Desktop.
Save guiferrpereira/e597c2656ff09e8a1c8ab16332772d92 to your computer and use it in GitHub Desktop.
version: "3.3"
services:
sonarqube:
image: sonarqube:lts
deploy:
replicas: 1
labels:
- com.df.notify=true
- com.df.port=9000
- com.df.httpsOnly=false
- com.df.serviceDomain=sonar.cablelabs.com
- com.df.servicePath=/
environment:
- sonar.jdbc.url=jdbc:postgresql://db:5432/sonar
volumes:
- /data/sonar/conf:/opt/sonarqube/conf
- /data/sonar/data:/opt/sonarqube/data
- /data/sonar/logs:/opt/sonarqube/logs
- /data/sonar/extensions:/opt/sonarqube/extensions
networks:
- sonarnet
- proxy
db:
image: postgres:latest
environment:
- POSTGRES_USER=sonar
- POSTGRES_PASSWORD=sonar
volumes:
- /data/sonar/db:/var/lib/postgresql/data
networks:
- sonarnet
networks:
sonarnet:
external: false
proxy:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment