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