Skip to content

Instantly share code, notes, and snippets.

@nanlabsweb
Created December 6, 2016 13:51
Show Gist options
  • Save nanlabsweb/bb5c35429ff748e1bdeb8363b8844fb0 to your computer and use it in GitHub Desktop.
Save nanlabsweb/bb5c35429ff748e1bdeb8363b8844fb0 to your computer and use it in GitHub Desktop.
POST - Create Nginx container
#!/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