projet-application-web/docker-compose.yml
2022-05-07 17:19:33 +02:00

38 lines
976 B
YAML

version: "3"
services:
wildfly:
hostname: wildfly
container_name: wildfly
image: kaaass/wildfly-mysql
environment:
- WILDFLY_DEBUG=${WILDFLY_DEBUG}
- WILDFLY_USER=${WILDFLY_ADMIN_USER}
- WILDFLY_PASS=${WILDFLY_ADMIN_PASS}
- DB_NAME=${MYSQL_DATABASE}
- DB_USER=${MYSQL_USER}
- DB_PASS=${MYSQL_PASSWORD}
- DB_URI=mariadb:3306
depends_on:
- db
volumes:
- ${DEPLOYMENT_PATH}:/opt/jboss/wildfly/standalone/deployments/:rw
ports:
- "8080:8080" # application
- "9990:9990" # admin console
- "8787:8787" # java debug
db:
hostname: mariadb
container_name: mariadb
image: mariadb
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- ${DATABASE_DATA_PATH}:/var/lib/mysql/ # data storage
ports:
- "3306:3306"