Created
September 18, 2018 11:59
-
-
Save DrMartiner/ba946d8d69a084d818bd81c8352f21bc to your computer and use it in GitHub Desktop.
docker-compose.yml Nginx sslforfree.com
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
location / { | |
root /usr/share/nginx/html; | |
} | |
} |
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
version: '2' | |
services: | |
nginx: | |
image: 'nginx:alpine' | |
restart: always | |
volumes: | |
- ./.well-known/:/usr/share/nginx/html/.well-known/ | |
- ./default.conf:/etc/nginx/conf.d/default.conf | |
ports: | |
- 80:80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment