fix: bugged wildfly startup

This commit is contained in:
Laureηt 2022-05-07 16:43:27 +02:00
parent 9e97667355
commit d21d15bd2c
No known key found for this signature in database
GPG key ID: D88C6B294FD40994

View file

@ -1,9 +1,7 @@
version: "2"
services:
wildfly:
container_name: wildfly
hostname: wildfly
app:
image: kaaass/wildfly-mysql
environment:
- WILDFLY_DEBUG=${WILDFLY_DEBUG}
@ -14,8 +12,6 @@ services:
- DB_PASS=${MYSQL_PASSWORD}
- DB_URI=db:3306
depends_on:
# db:
# condition: service_healthy
- db
volumes:
- ${DEPLOYMENT_PATH}:/opt/jboss/wildfly/standalone/deployments/:rw
@ -24,10 +20,8 @@ services:
- "8080:8080" # application
- "9990:9990" # admin console
- "8787:8787" # java debug
restart: unless-stopped
db:
container_name: db
hostname: db
image: "mysql:${MYSQL_VERSION}"
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
@ -39,17 +33,6 @@ services:
- ${DATABASE_DATA_PATH}:/var/lib/mysql/ # data storage
ports:
- "13306:3306"
# cap_add:
# - SYS_NICE
# healthcheck:
# test:
# [
# "CMD-SHELL",
# 'mysqladmin -p$$MYSQL_ROOT_PASSWORD -h localhost ping | grep "mysqld is alive" || exit 1',
# ]
# interval: 2s
# retries: 20
restart: unless-stopped
volumes:
db-data: