Last active
December 1, 2020 07:53
-
-
Save torrespro/cb3e50f28366bb7364fb7ec3b798fc3c 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.7" | |
# https://docs.docker.com/compose/compose-file/ | |
x-common-variables: &common-variables | |
SIG_SECRET_KEY: JWTSecretKeyDontUseInProduction! | |
EXTERNAL_SIG_SECRET_KEY: JWTSecretKeyDontUseInProduction! | |
EXTERNAL_ENC_SECRET_KEY: JWTEncKeyDontUseInProduction666! | |
eureka.client.serviceUrl.defaultZone: http://registry:8080/eureka | |
eureka.instance.non-secure-port: 8080 | |
management.endpoints.web.exposure.include: info,health,beans,bindings | |
x-database-variables: &database-variables | |
spring.liquibase.enabled: 'true' | |
spring.datasource.username: root | |
spring.datasource.password: root | |
spring.datasource.driver-class-name: com.mysql.jdbc.Driver | |
spring.jpa.database-platform: org.hibernate.dialect.MySQL5Dialect | |
spring.jpa.properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect | |
x-message-broker-variables: &message-broker-variables | |
spring.activemq.broker-url: tcp://message-broker:61616 | |
spring.activemq.user: admin | |
spring.activemq.password: admin | |
services: | |
message-broker: | |
image: rmohr/activemq:5.15.9-alpine | |
container_name: demo623_activemq | |
privileged: true | |
ports: | |
- "61616:61616" | |
- "8161:8161" | |
- "5672:5672" | |
- "61613:61613" | |
- "1883:1883" | |
- "61614:61614" | |
mysql: | |
image: mysql:5.7.18 | |
# Set max_allowed_packet to 512M for provisioning | |
command: --max-allowed-packet=512M --performance-schema=FALSE --transaction-isolation=READ-COMMITTED --init-connect='SET collation_connection=utf8_bin' --init-connect='SET NAMES utf8;' --character-set-server=utf8 --collation-server=utf8_bin --lower-case-table-names=2 --max-connections=500 | |
container_name: demo623_mysql | |
environment: | |
- MYSQL_ROOT_PASSWORD=root | |
ports: | |
- "3306:3306" | |
volumes: | |
- demo623_mysql_data:/var/lib/mysql | |
edge: | |
image: repo.backbase.com/backbase-docker-releases/gateway:IPS-1.11.8-latest | |
ports: | |
- "8080:8080" | |
environment: | |
<<: *common-variables | |
gateway.token.converter.url: http://token-converter/convert | |
links: | |
- registry | |
- token-converter | |
registry: | |
image: repo.backbase.com/backbase-docker-releases/registry:IPS-1.11.8-latest | |
ports: | |
- "8761:8080" | |
token-converter: | |
image: repo.backbase.com/backbase-docker-releases/bb-authentication-token-converter-service:IPS-1.11.8-latest | |
ports: | |
- "7779:8080" | |
environment: | |
<<: *common-variables | |
links: | |
- registry | |
auth: | |
image: repo.backbase.com/backbase-docker-releases/authentication-dev:IPS-1.11.8-latest-no-production | |
ports: | |
- "7778:8080" | |
environment: | |
<<: *common-variables | |
<<: *message-broker-variables | |
links: | |
- registry | |
- message-broker | |
contentservices: | |
image: repo.backbase.com/backbase-docker-releases/contentservices:CXS-6.2.3.1-latest | |
hostname: contentservices | |
ports: | |
- "8040:8080" | |
environment: | |
<<: *common-variables | |
<<: *message-broker-variables | |
<<: *database-variables | |
spring.datasource.url: jdbc:mysql://mysql:3306/cs?cacheServerConfiguration=true&createDatabaseIfNotExist=true | |
links: | |
- mysql | |
- registry | |
- message-broker | |
portal: | |
image: repo.backbase.com/backbase-docker-releases/portal:CXS-6.2.3.1-latest | |
hostname: portal | |
ports: | |
- "8070:8080" | |
environment: | |
<<: *common-variables | |
<<: *message-broker-variables | |
<<: *database-variables | |
portal.resource-location.profile: filesystem | |
portal.resource-location.path: /tmp | |
spring.datasource.url: jdbc:mysql://mysql:3306/portal?cacheServerConfiguration=true&createDatabaseIfNotExist=true | |
spring.jpa.properties.hibernate.session_factory_name_is_jndi: 'false' | |
links: | |
- mysql | |
- registry | |
- contentservices | |
- message-broker | |
provisioning: | |
image: repo.backbase.com/backbase-docker-releases/provisioning:CXS-6.2.3.1-latest | |
hostname: provisioning | |
ports: | |
- "8090:8080" | |
environment: | |
<<: *common-variables | |
<<: *message-broker-variables | |
<<: *database-variables | |
spring.datasource.url: jdbc:mysql://mysql:3306/provisioning?cacheServerConfiguration=true&createDatabaseIfNotExist=true | |
links: | |
- mysql | |
- registry | |
- message-broker | |
statics: | |
image: torrespro/import-statics-demo-sh:latest | |
links: | |
- edge | |
- portal | |
- contentservices | |
- provisioning | |
environment: | |
REPO_USERNAME: yourUsername | |
REPO_PASSWORD: yourPassword | |
CX6_VERSION: '6.2.2' | |
CX_MANAGER_VERSION: b3554 | |
command: sh -c "dockerize -wait http://edge:8080/api/provisioning/actuator/health/liveness -timeout 300s -wait-retry-interval 30s /import-statics" | |
volumes: | |
demo623_mysql_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment