Skip to content

This is a sample docker compose setup to have a local dev environment with WSO2 EI 6.4, MySQL and Liquibase

License

Notifications You must be signed in to change notification settings

franciscojuniorharness/docker-compose-wso2ei-mysql-liquibase

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Docker compose configuration to have an environment with:

  • WSO2 EI 6.4.0
  • MySQL 5.7.19
  • Sample Liquibase

This project was inspired by those:

WSO2 EI Container Configuration

This is a WSO2 EI 6.4.0 container. The only customization is the MySQL Datasource configuration that can be found at:

wso2-ei/customizations/conf/datasources/my-datasources.xml

It is able to connect with MySQL using a container link.

  1. Exposed Ports

    9443, 8280 and 8243

  2. Volume

    Carbonapps: wso2-ei/carbonapps -> /home/wso2carbon/wso2ei-6.4.0/repository/deployment/server/carbonapps

    Custom Entrypoint: wso2-ei/ei-entrypoint.sh -> /home/wso2carbon/ei-entrypoint.sh

    Customizations(conf,lib,dropins): wso2-ei/customizations -> /home/wso2carbon/customizations

    The customizations folder will be used when needed to add a custom configuration file, e.g axis2.xml, or lib or dropins. The custom entrypoint script(ei-entrypoint.sh) will copy the custom files to the target folders in the ei installation inside the container.

    If a custom carbon.xml is needed, we just need to place it under the customizations/conf folder, if the axis2.xml is needed, we need to place it under customizations/conf/axis2 folder.

Liquibase Container Configuration

This is a container that has a liquibase project to create a table in MySQL Container.

MySQL Container Configuration

  1. Exposed Ports

    3306

  2. Volume

    Application: mysql/data -> /var/lib/mysql

  3. Configurations to create a connection

    • MYSQL_DATABASE = default

    • MYSQL_USER = default

    • MYSQL_PASSWORD = secret

    • MYSQL_ROOT_PASSWORD = root

    • MYSQL_PORT = 3306

How To Use it

  1. Clone the repo:

    git clone https://github.com/fjunior87/docker-compose-wso2ei-mysql-liquibase.git

  2. Go to the folder docker-compose-wso2ei-mysql-liquibase and copy the file example-env to .env.

    cp example-env .env

  3. Run the containers:

    docker-compose up -d

  4. Go to the navigator:

    https://localhost:9443/carbon

It is also possible to connect to the MySQL container using a client like MySQL Workbench using localhost:3306.

About

This is a sample docker compose setup to have a local dev environment with WSO2 EI 6.4, MySQL and Liquibase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 53.1%
  • Shell 46.9%