more docs

This commit is contained in:
Christian Winther 2024-01-15 19:56:35 +00:00
parent 48e5d45b3f
commit 9c426b48a1
2 changed files with 15 additions and 2 deletions

View file

@ -11,13 +11,19 @@ services:
# Sits in front of the *real* webserver and manages SSL and (optionally) # Sits in front of the *real* webserver and manages SSL and (optionally)
# load-balancing between multiple web servers # load-balancing between multiple web servers
# #
# You can disable this service by setting [DOCKER_PROXY_PROFILE="disabled"]
# in your [.env] file - the setting is near the bottom of the file.
#
# This also disables the [proxy-acme] service, if this is not desired, change the
# [DOCKER_PROXY_ACME_PROFILE] setting to an empty string [""]
#
# See: https://github.com/nginx-proxy/nginx-proxy/tree/main/docs # See: https://github.com/nginx-proxy/nginx-proxy/tree/main/docs
proxy: proxy:
image: nginxproxy/nginx-proxy:1.4 image: nginxproxy/nginx-proxy:1.4
container_name: "${DOCKER_CONTAINER_NAME_PREFIX}-proxy" container_name: "${DOCKER_CONTAINER_NAME_PREFIX}-proxy"
restart: unless-stopped restart: unless-stopped
profiles: profiles:
- ${DOCKER_PROXY_PROFILE} - ${DOCKER_PROXY_PROFILE:-}
volumes: volumes:
- "${DOCKER_HOST_SOCKET_PATH}:/tmp/docker.sock:ro" - "${DOCKER_HOST_SOCKET_PATH}:/tmp/docker.sock:ro"
- "${DOCKER_CONFIG_ROOT}/proxy/conf.d:/etc/nginx/conf.d" - "${DOCKER_CONFIG_ROOT}/proxy/conf.d:/etc/nginx/conf.d"
@ -30,13 +36,16 @@ services:
# Proxy companion for managing letsencrypt SSL certificates # Proxy companion for managing letsencrypt SSL certificates
# #
# You can disable this service by setting [DOCKER_PROXY_ACME_PROFILE="disabled"]
# in your [.env] file - the setting is near the bottom of the file.
#
# See: https://github.com/nginx-proxy/acme-companion/tree/main/docs # See: https://github.com/nginx-proxy/acme-companion/tree/main/docs
proxy-acme: proxy-acme:
image: nginxproxy/acme-companion image: nginxproxy/acme-companion
container_name: "${DOCKER_CONTAINER_NAME_PREFIX}-proxy-acme" container_name: "${DOCKER_CONTAINER_NAME_PREFIX}-proxy-acme"
restart: unless-stopped restart: unless-stopped
profiles: profiles:
- ${DOCKER_PROXY_ACME_PROFILE} - ${DOCKER_PROXY_ACME_PROFILE:-}
environment: environment:
DEBUG: 0 DEBUG: 0
DEFAULT_EMAIL: "${LETSENCRYPT_EMAIL}" DEFAULT_EMAIL: "${LETSENCRYPT_EMAIL}"

View file

@ -26,3 +26,7 @@ No problem! All you have to do is:
1. `${APP_DOMAIN}.fullchain.pem` 1. `${APP_DOMAIN}.fullchain.pem`
1. `${APP_DOMAIN}.key.pem` 1. `${APP_DOMAIN}.key.pem`
* See the [`nginx-proxy` configuration file for name patterns](https://github.com/nginx-proxy/nginx-proxy/blob/main/nginx.tmpl#L659-L670) * See the [`nginx-proxy` configuration file for name patterns](https://github.com/nginx-proxy/nginx-proxy/blob/main/nginx.tmpl#L659-L670)
## How do I change the container name prefix?
Change the `DOCKER_CONTAINER_NAME_PREFIX` key/value pair in your `.env` file.