Skip to content

Instantly share code, notes, and snippets.

@arifulhb
Created March 30, 2019 16:31
Show Gist options
  • Save arifulhb/b89ef22e28be2e3db3e753080046cbb5 to your computer and use it in GitHub Desktop.
Save arifulhb/b89ef22e28be2e3db3e753080046cbb5 to your computer and use it in GitHub Desktop.
Nginx image and volume for Docker
nginx:
build:
context: ./images/nginx
dockerfile: Dockerfile
container_name: lempdock_nginx_1
ports:
- "80:80"
- "443:443"
volumes:
- ./www:/var/www
- ./images/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./images/nginx/sites/:/etc/nginx/sites-available
- ./images/nginx/conf.d/:/etc/nginx/conf.d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment