Created
February 22, 2019 10:14
-
-
Save santarinto/5d02296328ea2cae33aaa37f284da66f to your computer and use it in GitHub Desktop.
#docker help script
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
#!/bin/bash | |
cd ./docker | |
docker-compose up -d | |
nginx_ip=`docker-compose exec nginx hostname -I` | |
nginx_host=`docker-compose exec nginx hostname` | |
./../manage-etc-hosts.bash add $nginx_host $nginx_ip | |
echo "app ip: ${nginx_ip}" | |
echo "app host: ${nginx_host}" | |
echo "Docker is runing in backgroung, to start show logs, run ./logs-docker.bash" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment