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" version: "2"
services: services:
wildfly: app:
container_name: wildfly
hostname: wildfly
image: kaaass/wildfly-mysql image: kaaass/wildfly-mysql
environment: environment:
- WILDFLY_DEBUG=${WILDFLY_DEBUG} - WILDFLY_DEBUG=${WILDFLY_DEBUG}
@ -14,8 +12,6 @@ services:
- DB_PASS=${MYSQL_PASSWORD} - DB_PASS=${MYSQL_PASSWORD}
- DB_URI=db:3306 - DB_URI=db:3306
depends_on: depends_on:
# db:
# condition: service_healthy
- db - db
volumes: volumes:
- ${DEPLOYMENT_PATH}:/opt/jboss/wildfly/standalone/deployments/:rw - ${DEPLOYMENT_PATH}:/opt/jboss/wildfly/standalone/deployments/:rw
@ -24,10 +20,8 @@ services:
- "8080:8080" # application - "8080:8080" # application
- "9990:9990" # admin console - "9990:9990" # admin console
- "8787:8787" # java debug - "8787:8787" # java debug
restart: unless-stopped
db: db:
container_name: db
hostname: db
image: "mysql:${MYSQL_VERSION}" image: "mysql:${MYSQL_VERSION}"
environment: environment:
- MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_DATABASE=${MYSQL_DATABASE}
@ -39,17 +33,6 @@ services:
- ${DATABASE_DATA_PATH}:/var/lib/mysql/ # data storage - ${DATABASE_DATA_PATH}:/var/lib/mysql/ # data storage
ports: ports:
- "13306:3306" - "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: volumes:
db-data: db-data: