Last active
March 4, 2017 09:27
-
-
Save ruddell/f79482e2f96c0fcb00b71619ad9929cc to your computer and use it in GitHub Desktop.
JHipster Rancher Microservices Example
This file contains 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: '2' | |
services: | |
jhipstersamplegateway-app: | |
image: jhipster/jhipster-sample-app-gateway #image is hosted on Docker Hub | |
external_links: | |
- jhipstersamplegateway-mysql:mysql | |
- jhipster-registry:registry | |
environment: | |
- SPRING_PROFILES_ACTIVE=prod,swagger | |
- SPRING_CLOUD_CONFIG_URI=http://admin:admin@registry:8761/config | |
- SPRING_DATASOURCE_URL=jdbc:mysql://mysql:3306/jhipstersamplegateway?useUnicode=true&characterEncoding=utf8&useSSL=false | |
- SPRING_DATA_CASSANDRA_CONTACTPOINTS=cassandra | |
- JHIPSTER_SLEEP=30 | |
- JHIPSTER_REGISTRY_PASSWORD=admin | |
ports: | |
- 8080:8080 | |
jhipstersamplegateway-mysql: | |
container_name: jhipstersamplegateway-mysql | |
image: mysql:5.7.13 | |
environment: | |
- MYSQL_USER=root | |
- MYSQL_ALLOW_EMPTY_PASSWORD=yes | |
- MYSQL_DATABASE=jhipstersamplegateway | |
command: mysqld --lower_case_table_names=1 --skip-ssl | |
jhipstersamplemicroservice-app: | |
image: jhipster/jhipster-sample-app-microservice #image is hosted on Docker Hub | |
external_links: | |
- jhipstersamplemicroservice-postgresql:postgresql | |
- jhipster-registry:registry | |
environment: | |
- SPRING_PROFILES_ACTIVE=prod,swagger | |
- SPRING_CLOUD_CONFIG_URI=http://admin:admin@registry:8761/config | |
- SPRING_DATASOURCE_URL=jdbc:postgresql://postgresql:5432/jhipsterSampleMicroservice | |
- JHIPSTER_SLEEP=10 | |
- JHIPSTER_REGISTRY_PASSWORD=admin | |
jhipstersamplemicroservice-postgresql: | |
container_name: jhipstersamplemicroservice-postgresql | |
image: postgres:9.5.4 | |
environment: | |
- POSTGRES_USER=jhipsterSampleMicroservice | |
- POSTGRES_PASSWORD= | |
jhipster-registry: | |
image: jhipster/jhipster-registry:v2.5.8 | |
# By default the JHipster Registry runs with the "prod" and "native" | |
# Spring profiles. | |
# "native" profile means the filesystem is used to store data, see | |
# http://cloud.spring.io/spring-cloud-config/spring-cloud-config.html | |
environment: | |
- SPRING_PROFILES_ACTIVE=prod | |
- SECURITY_USER_PASSWORD=admin | |
- GIT_URI=https://github.com/jhipster/jhipster-registry/ | |
- GIT_SEARCH_PATHS=central-config | |
ports: | |
- 8761:8761 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment