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
| {{ $CurrentContainer := where $ "ID" .Docker.CurrentContainerID | first }} | |
| {{ $external_http_port := coalesce $.Env.HTTP_PORT "80" }} | |
| {{ $external_https_port := coalesce $.Env.HTTPS_PORT "443" }} | |
| {{ define "upstream" }} | |
| {{ if .Address }} | |
| {{/* If we got the containers from swarm and this container's port is published to host, use host IP:PORT */}} | |
| {{ if and .Container.Node.ID .Address.HostPort }} | |
| # {{ .Container.Node.Name }}/{{ .Container.Name }} |
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 | |
| yum -y install expect | |
| MYSQL_ROOT_PASSWORD=root | |
| SECURE_MYSQL=$(expect -c " | |
| set timeout 10 | |
| spawn mysql_secure_installation |