Public Repository

Last pushed: 10 months ago
Short Description
Short description is empty for this repo.
Full Description

docker run --name nginx -p 80:80 --link wordpress:wordpress -itd nginx
or
docker run --name nginx --link wordpress:wordpress -p 80:80 -v /path/to/source/config.conf:/etc/nginx/conf.d/servername.conf -itd princemishra/nginx

server {
listen 80;
server_name www.servername.com;

location / {
proxy_pass http://wordpress;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

Docker Pull Command
Owner
princemishra

Comments (0)