This repo contains the DevStack Dockerfile.
Your feedback is always welcome.
The development stack consists of:
- Wildfly: Java EE application server
- Preconfigured JNDI datasource
- Administration Console
- MySQL: Relational database management system
- Docker (including docker-compose)
This section gives you a quick overview on how to get started.
Boot the environment by running:
# starts the `app` and `db` containers
$ docker-compose up
Now you can access the components:
- Wildfly
- Application: http://localhost:8080
- Administration Console: http://localhost:9990
- JNDI name:
/jdbc/datasources/sampleDS
- MySQL
- Connection: http://localhost:3306
Stop the environment:
# remove the containers
$ docker-compose down
The following environment variables show the default values.
Configure your environment:
Official WildFly image documentation
- WILDFLY_USER=admin
- WILDFLY_PASS=adminPassword
- Database configuration
This config must match the one of the MySQL database (name, user, password).- DB_NAME=sample
Important: The JNDI name follows the pattern:/jdbc/datasources/<DB_NAME>DS
- DB_USER=mysql
- DB_PASS=mysql
- DB_NAME=sample
Official MySQL image documentation
- MYSQL_DATABASE=sample
- MYSQL_USER=mysql
- MYSQL_PASSWORD=mysql
- MYSQL_ROOT_PASSWORD=supersecret
- Hint: This is the password for the MySQL
root
user.
- Hint: This is the password for the MySQL
Please submit issues through the issue tracker on GitHub.
Released under the MIT License.