Skip to content

Instantly share code, notes, and snippets.

@junxy
Last active April 13, 2016 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save junxy/65ee6e822e0401a615245d1093135f0c to your computer and use it in GitHub Desktop.
Save junxy/65ee6e822e0401a615245d1093135f0c to your computer and use it in GitHub Desktop.
sonarqube:
restart: always
image: sonarqube:latest
links:
- postgresql:postgresql
ports:
- "9000:9000"
environment:
- SONARQUBE_JDBC_URL=jdbc:postgresql://postgresql/sonar_production
volumes:
- /srv/docker/sonarqube/data:/opt/sonarqube/data
- /srv/docker/sonarqube/extensions:/opt/sonarqube/extensions
postgresql:
restart: always
image: sameersbn/postgresql:9.4-18
environment:
- DB_USER=sonar
- DB_PASS=sonar
- DB_NAME=sonar_production
# - DB_EXTENSION=pg_trgm
volumes:
- /srv/docker/sonarqube/postgresql:/var/lib/postgresql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment