docker-nginx-ssl/README.md

66 lines
1.8 KiB
Markdown
Raw Permalink Normal View History

2023-10-25 10:58:37 -04:00
<!--
2024-03-06 11:24:12 -05:00
SPDX-FileCopyrightText: 2018 - 2024 Daniel Wolf <nephatrine@gmail.com>
2023-10-25 10:58:37 -04:00
SPDX-License-Identifier: ISC
-->
2023-04-30 21:19:25 -04:00
[Git](https://code.nephatrine.net/NephNET/docker-nginx-ssl/src/branch/master) |
2021-04-26 18:01:18 -04:00
[Docker](https://hub.docker.com/r/nephatrine/nginx-ssl/) |
2023-05-01 16:53:46 -04:00
[unRAID](https://code.nephatrine.net/NephNET/unraid-containers)
2018-05-02 14:35:49 -04:00
# NGINX Reverse Proxy/Web Server
2021-04-26 18:01:18 -04:00
This docker container manages the NGINX application, a lightweight web server
and reverse proxy. It includes certbot/letsencrypt for easily obtaining TLS
certificates if your server is publicly accessible.
2018-12-27 12:07:35 -05:00
2024-03-06 11:24:12 -05:00
The `latest` tag points to version `1.25.4` and this is the only image actively
being updated. There are tags for older versions, but these may no longer be
using the latest Alpine version and packages.
2021-04-26 18:01:18 -04:00
This container is primarily intended to be used as a reverse proxy/cache to
access other containers. You can certainly serve static content, but tools like
PHP or MySQL are not included.
## Docker-Compose
This is an example docker-compose file:
```yaml
services:
2023-06-21 09:41:26 -04:00
nginx:
image: nephatrine/nginx-ssl:latest
container_name: nginx
environment:
TZ: America/New_York
PUID: 1000
PGID: 1000
ADMINIP: 127.0.0.1
TRUSTSN: 192.168.0.0/16
DNSADDR: "8.8.8.8 8.8.4.4"
SSLEMAIL:
SSLDOMAINS:
B_MODULI: 4096
B_RSA: 4096
B_ECDSA: 384
ports:
- "80:80/tcp"
- "443:443/tcp"
- "443:443/udp"
volumes:
- /mnt/containers/nginx:/mnt/config
```
## Server Configuration
These are the configuration and data files you will likely need to be aware of
and potentially customize.
- `/mnt/config/etc/mime.type`
- `/mnt/config/etc/nginx.conf`
- `/mnt/config/etc/nginx.d/*`
- `/mnt/config/www/default/*`
2023-06-20 21:26:36 -04:00
Modifications to some of these may require a service restart to pull in the
changes made.