Docker setup for nginx
·
Report Bug
·
Request Feature
Small docker setup for nginx. Utilizes jwilder/nginx-proxy and nginx-proxy/docker-letsencrypt-nginx-proxy-companion to reload configurations and renew certificates.
To get a local copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/Beuterei/nginx.git
- Copy docker-compose example and edit it
cp docker-compose.override.example.yml docker-compose.override.yml && vim docker-compose.override.yml
- Start docker-compose
docker-compose up --build
- Navigate to
localtest.me
- Create a
.env
file
touch .env
- Overwrite variables as you like (format:
{variable name}={variable value}
)
Variable | Description | Default value | Required |
---|---|---|---|
DEFAULT_EMAIL |
Defines your default email for Let's Encrypt | none | true |
PROXY_NETWORK_NAME |
Defines your proxy network name | nginxproxynet | false |
To get a copy up and running follow these simple steps.
- Clone the repo
git clone https://github.com/Beuterei/nginx.git --branch master
- Create a
.env.production
file
touch .env.production
- Overwrite all variables marked under Customization as required
- Start docker-compose
docker-compose --env-file ./.env.production -f docker-compose.yml -f docker-compose.production.yml up -d
- Create a
.env.production
file
touch .env.production
- Overwrite variables as you like (format:
{variable name}={variable value}
)
Variable | Description | Default value | Required |
---|---|---|---|
DEFAULT_EMAIL |
Defines your default email for Let's Encrypt | none | true |
PROXY_NETWORK_NAME |
Defines your proxy network name | nginxproxynet | false |