Skip to content

Instantly share code, notes, and snippets.

@Nicnl
Created March 25, 2019 08:06
Show Gist options
  • Save Nicnl/652e70e7ba364cbb196fe4cdc5bd622d to your computer and use it in GitHub Desktop.
Save Nicnl/652e70e7ba364cbb196fe4cdc5bd622d to your computer and use it in GitHub Desktop.
Apicurio Studio via docker-compose
version: '3'
services:
apicurio-studio-mysql:
image: 'percona:5.7'
command: [
'--character-set-server=utf8mb4',
'--collation-server=utf8mb4_unicode_ci'
]
environment:
MYSQL_DATABASE: 'apicuriodb'
MYSQL_ROOT_PASSWORD: 'apicurio_db_root_password'
MYSQL_USER: 'apicurio'
MYSQL_PASSWORD: 'apicurio_db_password'
volumes:
- './data_mysql:/var/lib/mysql'
apicurio-studio-ws:
image: 'apicurio/apicurio-studio-ws:0.2.25.Final'
depends_on: [apicurio-studio-mysql]
ports:
- '8092:8080'
environment:
JAVA_TOOL_OPTIONS: '-Djava.net.preferIPv4Stack=true'
APICURIO_DB_TYPE: 'mysql5'
APICURIO_DB_DRIVER_NAME: 'mysql'
APICURIO_DB_CONNECTION_URL: 'jdbc:mysql://apicurio-studio-mysql/apicuriodb'
APICURIO_DB_USER_NAME: 'apicurio'
APICURIO_DB_PASSWORD: 'apicurio_db_password'
APICURIO_DB_INITIALIZE: 'false'
apicurio-studio-api:
image: 'apicurio/apicurio-studio-api:0.2.25.Final'
depends_on: [apicurio-studio-mysql, apicurio-studio-ws]
ports:
- '8091:8080'
environment:
JAVA_TOOL_OPTIONS: '-Djava.net.preferIPv4Stack=true'
APICURIO_KC_AUTH_URL: 'http://10.0.0.130:8090/auth/'
APICURIO_DB_TYPE: 'mysql5'
APICURIO_DB_DRIVER_NAME: 'mysql'
APICURIO_DB_CONNECTION_URL: 'jdbc:mysql://apicurio-studio-mysql/apicuriodb'
APICURIO_DB_USER_NAME: 'apicurio'
APICURIO_DB_PASSWORD: 'apicurio_db_password'
APICURIO_DB_INITIALIZE: 'true'
APICURIO_GITHUB_API_URL: ''
APICURIO_GITLAB_API_URL: ''
APICURIO_BITBUCKET_API_URL: ''
apicurio-studio-ui:
image: 'apicurio/apicurio-studio-ui:0.2.25.Final'
depends_on: [apicurio-studio-mysql, apicurio-studio-api, apicurio-studio-ws]
ports:
- '8093:8080'
environment:
JAVA_TOOL_OPTIONS: '-Djava.net.preferIPv4Stack=true'
APICURIO_KC_AUTH_URL: 'http://10.0.0.130:8090/auth/'
APICURIO_UI_HUB_API_URL: 'http://10.0.0.130:8091'
APICURIO_UI_EDITING_URL: 'ws://10.0.0.130:8092'
version: '3'
services:
jboss-keycloak-mysql:
image: 'percona:5.7'
environment:
MYSQL_DATABASE: 'keycloak'
MYSQL_ROOT_PASSWORD: 'keycloak_db_root_password'
MYSQL_USER: 'keycloak'
MYSQL_PASSWORD: 'keycloak_db_password'
volumes:
- './data_mysql:/var/lib/mysql'
jboss-keycloak:
image: 'jboss/keycloak:4.8.3.Final'
depends_on: [jboss-keycloak-mysql]
ports:
- '8090:8080'
environment:
KEYCLOAK_USER: 'admin'
KEYCLOAK_PASSWORD: 'admin_password'
DB_VENDOR: 'mysql'
DB_ADDR: 'jboss-keycloak-mysql'
DB_USER: 'keycloak'
DB_PASSWORD: 'keycloak_db_password'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment