Last active
December 13, 2020 14:14
-
-
Save vssn/de47d570e5d9d4c1f78e32d8e23f0c8e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/bash | |
cd laradock | |
docker-compose stop | |
docker-compose up -d nginx mariadb | |
MARIADB_IP=`docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' laradock_mariadb_1` | |
cd .. | |
sed -i "s/DB_HOST=.*/DB_HOST=$MARIADB_IP/" .env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment