diff --git a/docker-compose.yml b/docker-compose.yml index 8b4636a..dd69c1f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: