feat: mariadb

This commit is contained in:
Laureηt 2022-04-21 10:06:30 +02:00
parent 743db5fb32
commit 1fe9817bd2
No known key found for this signature in database
GPG key ID: D88C6B294FD40994
2 changed files with 26 additions and 3 deletions

3
.gitignore vendored
View file

@ -4,3 +4,6 @@
# Ignore Gradle build output directory # Ignore Gradle build output directory
build build
bin bin
# Ignore mariadb volume directory
mariadb

View file

@ -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