Created
December 6, 2016 13:51
-
-
Save nanlabsweb/bb5c35429ff748e1bdeb8363b8844fb0 to your computer and use it in GitHub Desktop.
POST - Create Nginx container
This file contains 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 | |
BASE_PATH=`pwd` | |
NGINX_CONFIGURATION=$BASE_PATH/proxy-nginx/default.conf | |
echo "=== Creating 'proxy_nginx' with (nginx) ===" | |
echo "=== Variables ===" | |
echo '$NGINX_CONFIGURATION=' $NGINX_CONFIGURATION | |
docker run --name proxy_nginx\ | |
-p 80:80 -p 443:443\ | |
-v $NGINX_CONFIGURATION:/etc/nginx/conf.d/default.conf:ro\ | |
--link wordpress:wordpress\ | |
-d nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment