Skip to content

Instantly share code, notes, and snippets.

@darmawan01
Created September 5, 2019 16:20
Show Gist options
  • Save darmawan01/9eefcbb878cb0294d5551e8584bcfbc4 to your computer and use it in GitHub Desktop.
Save darmawan01/9eefcbb878cb0294d5551e8584bcfbc4 to your computer and use it in GitHub Desktop.
Simple docker compose for static web
version "3"
sites:
image: nginx:1.15.8-alpine
restart: always
working_dir: /usr/share/nginx/html
ports:
- "2000:80"
volumes:
- ./proxy.conf:/etc/nginx/conf.d/default.conf
- ./:/usr/share/nginx/html
command: nginx -g "daemon off;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment