-
-
Save beingsane/a03d22122038a8976f900bf038add9f1 to your computer and use it in GitHub Desktop.
My start script for customized laradock showing IP's
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 | |
if [ $# -lt 1 ] | |
then | |
echo "Uso : $0 Stack a ser usado (zabbix/webdev)" | |
exit | |
fi | |
case "$1" in | |
zabbix) echo "Iniciando Docker-Zabbix..." | |
docker-compose up -d zabbix-db zabbix-server zabbix-frontend zabbix-agentd | |
docker inspect --format='{{.Name}} ===== {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker-compose ps -q) | |
;; | |
webdev) echo "Iniciando PostgreSQL e Nginx..." | |
docker-compose up -d postgres redis nginx | |
docker inspect --format='{{.Name}} ===== {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker-compose ps -q) | |
;; | |
*) echo "Lista dos Stacks já iniciados:" | |
docker inspect --format='{{.Name}} ===== {{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' $(docker-compose ps -q) | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment