Created
November 4, 2021 09:19
-
-
Save subinamathew/2ba4a40cc1728fd5cbdf4483f0f06ccc to your computer and use it in GitHub Desktop.
magnilia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
database: | |
image: mysql | |
entrypoint: ['/entrypoint.sh', '--default-authentication-plugin=mysql_native_password'] | |
environment: | |
- MYSQL_USER=magnolia | |
- MYSQL_PASSWORD=mysecretpassword | |
- MYSQL_DATABASE=magnolia | |
- MYSQL_ROOT_PASSWORD=myVerySecretPassword | |
magnolia: | |
image: onkomm-docker-1 | |
ports: | |
- "80:8080" | |
depends_on: | |
- database | |
environment: | |
- INSTANCE_TYPE=public | |
- HOST_TYPE=tundi | |
- DB_TYPE=mysql | |
- DB_ADDRESS=database | |
- DB_PORT=3306 | |
- DB_SCHEMA=magnolia | |
- DB_USERNAME=magnolia | |
- DB_PASSWORD=mysecretpassword | |
entrypoint: | |
- bash | |
- -c | |
- | | |
set -e | |
while ! mysql -h "$$DB_ADDRESS" -umagnolia -pmysecretpassword -e 'show databases;'; do | |
echo 'Waiting for MYSQL_DATABASE to be available' | |
sleep 1 | |
done | |
/usr/local/tomcat/bin/catalina.sh run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment