Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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