wtf: c'est pas déterministe je jure
This commit is contained in:
parent
abbefbbdd3
commit
aa247464bb
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,6 +4,7 @@
|
|||
# Ignore Gradle build output directory
|
||||
build
|
||||
bin
|
||||
.sass-cache
|
||||
|
||||
# Ignore docker volume directory
|
||||
mysql-volume
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,7 +1,9 @@
|
|||
version: "2"
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
app:
|
||||
wildfly:
|
||||
hostname: wildfly
|
||||
container_name: wildfly
|
||||
image: kaaass/wildfly-mysql
|
||||
environment:
|
||||
- WILDFLY_DEBUG=${WILDFLY_DEBUG}
|
||||
|
@ -10,34 +12,26 @@ services:
|
|||
- DB_NAME=${MYSQL_DATABASE}
|
||||
- DB_USER=${MYSQL_USER}
|
||||
- DB_PASS=${MYSQL_PASSWORD}
|
||||
- DB_URI=db:3306
|
||||
- DB_URI=mariadb:3306
|
||||
depends_on:
|
||||
- db
|
||||
volumes:
|
||||
- ${DEPLOYMENT_PATH}:/opt/jboss/wildfly/standalone/deployments/:rw
|
||||
# - ${INIT_PATH}:/opt/jboss/wildfly/customization/init.d
|
||||
ports:
|
||||
- "8080:8080" # application
|
||||
- "9990:9990" # admin console
|
||||
- "8787:8787" # java debug
|
||||
|
||||
db:
|
||||
image: "mysql:${MYSQL_VERSION}"
|
||||
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_INIT_PATH}:/docker-entrypoint-initdb.d/ # init database
|
||||
- ${DATABASE_DATA_PATH}:/var/lib/mysql/ # data storage
|
||||
ports:
|
||||
- "13306:3306"
|
||||
|
||||
volumes:
|
||||
db-data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
- "3306:3306"
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<property name="hibernate.format_sql" value="false" />
|
||||
<property name="hibernate.dialect" value="org.hibernate.dialect.MariaDB103Dialect" />
|
||||
<!-- Ligne suivante à décommenter pour remettre à zéro la db au déploiement -->
|
||||
<property name="hibernate.hbm2ddl.auto" value="create-drop" />
|
||||
<!-- <property name="hibernate.hbm2ddl.auto" value="create-drop" /> -->
|
||||
|
||||
</properties>
|
||||
</persistence-unit>
|
||||
|
|
Loading…
Reference in a new issue