feat: mariadb
This commit is contained in:
parent
743db5fb32
commit
1fe9817bd2
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -4,3 +4,6 @@
|
|||
# Ignore Gradle build output directory
|
||||
build
|
||||
bin
|
||||
|
||||
# Ignore mariadb volume directory
|
||||
mariadb
|
||||
|
|
|
@ -3,14 +3,34 @@ version: "3"
|
|||
services:
|
||||
wildfly:
|
||||
image: quay.io/wildfly/wildfly
|
||||
container_name: wildfly
|
||||
hostname: wildfly
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "9990:9990"
|
||||
- 8080:8080
|
||||
- 9990:9990
|
||||
volumes:
|
||||
- "./build/libs/:/opt/jboss/wildfly/standalone/deployments/"
|
||||
- ./build/libs/:/opt/jboss/wildfly/standalone/deployments/
|
||||
environment:
|
||||
- WILDFLY_PASSWORD=password
|
||||
restart: always
|
||||
|
||||
mariadb:
|
||||
image: mariadb
|
||||
container_name: mariadb
|
||||
hostname: mariadb
|
||||
environment:
|
||||
- MYSQL_USER=user
|
||||
- MYSQL_PASSWORD=mypassword
|
||||
- MYSQL_DATABASE=mydatabase
|
||||
- MYSQL_ROOT_PASSWORD=rootpassword
|
||||
ports:
|
||||
- 3306:3306
|
||||
volumes:
|
||||
- ./mariadb/:/var/lib/mysql/
|
||||
restart: always
|
||||
|
||||
volumes:
|
||||
wildfly_data:
|
||||
driver: local
|
||||
mariadb:
|
||||
driver: local
|
||||
|
|
Loading…
Reference in a new issue