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
|
# Ignore Gradle build output directory
|
||||||
build
|
build
|
||||||
bin
|
bin
|
||||||
|
|
||||||
|
# Ignore mariadb volume directory
|
||||||
|
mariadb
|
||||||
|
|
|
@ -3,14 +3,34 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
wildfly:
|
wildfly:
|
||||||
image: quay.io/wildfly/wildfly
|
image: quay.io/wildfly/wildfly
|
||||||
|
container_name: wildfly
|
||||||
|
hostname: wildfly
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- 8080:8080
|
||||||
- "9990:9990"
|
- 9990:9990
|
||||||
volumes:
|
volumes:
|
||||||
- "./build/libs/:/opt/jboss/wildfly/standalone/deployments/"
|
- ./build/libs/:/opt/jboss/wildfly/standalone/deployments/
|
||||||
environment:
|
environment:
|
||||||
- WILDFLY_PASSWORD=password
|
- 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:
|
volumes:
|
||||||
wildfly_data:
|
wildfly_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
mariadb:
|
||||||
|
driver: local
|
||||||
|
|
Loading…
Reference in a new issue