Created
March 30, 2019 16:31
-
-
Save arifulhb/b89ef22e28be2e3db3e753080046cbb5 to your computer and use it in GitHub Desktop.
Nginx image and volume for Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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