Skip to content

Instantly share code, notes, and snippets.

@roy-n-roy
Created December 5, 2019 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roy-n-roy/85ea606ff01da712dfea8de297e04b13 to your computer and use it in GitHub Desktop.
Save roy-n-roy/85ea606ff01da712dfea8de297e04b13 to your computer and use it in GitHub Desktop.
Serve static web site setting by docker-compose.
version: '3'
services:
nginx:
image: nginx
ports:
- "80:80"
environment:
- NGINX_HOST=http://hogehoge.com/
- NGINX_PORT=80
read_only: true
volumes:
- ./nginx-cache:/var/cache/nginx
- ./nginx-pid:/var/run
- ./html:/usr/share/nginx/html:ro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment