Closed y12studio closed 10 years ago
Deploying Ghost With Docker
# docker run -d dockerfile/ghost # docker ps d4ade17ecfd3 dockerfile/ghost:latest bash /ghost-start 12 seconds ago Up 11 seconds 2368/tcp elegant_meitner # docker inspect d4ad | grep Address "IPAddress": "172.17.0.3", # cat /etc/nginx/sites-available/1.0.y12.tw server { listen 80; server_name 1.0.y12.tw; location / { proxy_pass http://172.17.0.3:2368; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } root@0:~# service nginx restart * Restarting nginx nginx [ OK ]
ref
Deploying Ghost With Docker
ref