Created
April 4, 2018 12:08
-
-
Save yooouuri/8934817e8b6c0c88ec5a910ea3f9f47d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| services: | |
| jenkins: | |
| image: jenkins/jenkins | |
| container_name: jenkins | |
| networks: | |
| - sop | |
| ports: | |
| - "8080:8080" | |
| volumes: | |
| - ./jenkins:/var/jenkins_home | |
| - ./deployment:/deployments | |
| artifactory: | |
| image: docker.bintray.io/jfrog/artifactory-oss:latest | |
| container_name: artifactory | |
| networks: | |
| - sop | |
| ports: | |
| - "8081:8081" | |
| volumes: | |
| - ./artifactory:/var/opt/jfrog/artifactory | |
| postgres: | |
| image: postgres | |
| container_name: postgres | |
| networks: | |
| - sop | |
| ports: | |
| - "5432:5432" | |
| environment: | |
| - POSTGRES_USER=sonar | |
| - POSTGRES_PASSWORD=sonar | |
| sonarqube: | |
| image: sonarqube | |
| container_name: sonarqube | |
| networks: | |
| - sop | |
| ports: | |
| - "9000:9000" | |
| - "9092:9092" | |
| environment: | |
| - SONARQUBE_JDBC_USERNAME=sonar | |
| - SONARQUBE_JDBC_PASSWORD=sonar | |
| - SONARQUBE_JDBC_URL=jdbc:postgresql://postgres:5432/sonar | |
| - SONAR_SCANNER_OPTS=-Xmx2048m | |
| prod: | |
| image: payara/server-full:latest | |
| container_name: prod | |
| ports: | |
| - "80:8080" | |
| - "4848:4848" | |
| volumes: | |
| - ./deployment:/opt/payara5/glassfish/domains/domain1/autodeploy | |
| networks: | |
| - sop | |
| test: | |
| image: payara/server-full:latest | |
| container_name: test | |
| ports: | |
| - "80:8080" | |
| - "4848:4848" | |
| volumes: | |
| - ./deployment:/opt/payara5/glassfish/domains/domain1/autodeploy | |
| networks: | |
| - sop | |
| networks: | |
| sop: | |
| driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment