Skip to content

Instantly share code, notes, and snippets.

@santarinto
Created February 22, 2019 10:14
Show Gist options
  • Save santarinto/5d02296328ea2cae33aaa37f284da66f to your computer and use it in GitHub Desktop.
Save santarinto/5d02296328ea2cae33aaa37f284da66f to your computer and use it in GitHub Desktop.
#docker help script
#!/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