initial commit
This commit is contained in:
commit
7967900621
33
.env.sample
Normal file
33
.env.sample
Normal file
@ -0,0 +1,33 @@
|
||||
# .env file to set up your NGINX server with letsencrypt
|
||||
|
||||
#
|
||||
# Network name
|
||||
#
|
||||
# Your container app must use a network conencted to your webproxy
|
||||
# https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion
|
||||
#
|
||||
NETWORK=webproxy
|
||||
|
||||
|
||||
#
|
||||
# Webroot configuration
|
||||
#
|
||||
#WEBROOT_PATH=/path/to/your/webroot
|
||||
WEBROOT_PATH=./data/site
|
||||
|
||||
|
||||
#
|
||||
# NGINX Settings
|
||||
#
|
||||
CONTAINER_NGINX_NAME=nginx
|
||||
NGINX_PORT=8081
|
||||
|
||||
|
||||
#
|
||||
# Host
|
||||
#
|
||||
# Your domain (or domains)
|
||||
VIRTUAL_HOST=domain1.com,www.domain1.com
|
||||
LETSENCRYPT_HOST=domain1.com,www.domain1.com
|
||||
# Your email for Let's Encrypt register
|
||||
LETSENCRYPT_EMAIL=your_email@domain.com
|
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
# ---> VisualStudioCode
|
||||
.vscode/*
|
||||
!.vscode/settings.json
|
||||
!.vscode/tasks.json
|
||||
!.vscode/launch.json
|
||||
!.vscode/extensions.json
|
||||
|
||||
# ---> Production Config File
|
||||
.env
|
5
LICENSE
Normal file
5
LICENSE
Normal file
@ -0,0 +1,5 @@
|
||||
MIT License
|
||||
Copyright (c) <year> <copyright holders>
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
5
README.md
Normal file
5
README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# docker-compose-nginx-letsencrypt
|
||||
|
||||
Simple NGINX server integrated with letsencrypt.
|
||||
|
||||
Uses https://github.com/evertramos/docker-compose-letsencrypt-nginx-proxy-companion as basis.
|
3
data/.gitignore
vendored
Normal file
3
data/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
*
|
||||
*/
|
||||
!.gitignore
|
20
docker-compose.yml
Normal file
20
docker-compose.yml
Normal file
@ -0,0 +1,20 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
nginx:
|
||||
container_name: ${CONTAINER_NGINX_NAME}
|
||||
image: nginx:stable
|
||||
volumes:
|
||||
- ${WEBROOT_PATH}:/var/www
|
||||
ports:
|
||||
- "${NGINX_PORT}:80"
|
||||
|
||||
environment:
|
||||
VIRTUAL_HOST: ${VIRTUAL_HOST}
|
||||
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
|
||||
LETSENCRYPT_EMAIL: ${LETSENCRYPT_EMAIL}
|
||||
|
||||
networks:
|
||||
default:
|
||||
external:
|
||||
name: ${NETWORK}
|
Loading…
Reference in New Issue
Block a user