Christian Winther 1 tahun lalu
induk
melakukan
9c426b48a1
2 mengubah file dengan 15 tambahan dan 2 penghapusan
  1. 11 2
      docker-compose.yml
  2. 4 0
      docker/faq.md

+ 11 - 2
docker-compose.yml

@@ -11,13 +11,19 @@ services:
   # Sits in front of the *real* webserver and manages SSL and (optionally)
   # 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
   proxy:
     image: nginxproxy/nginx-proxy:1.4
     container_name: "${DOCKER_CONTAINER_NAME_PREFIX}-proxy"
     restart: unless-stopped
     profiles:
-      - ${DOCKER_PROXY_PROFILE}
+      - ${DOCKER_PROXY_PROFILE:-}
     volumes:
       - "${DOCKER_HOST_SOCKET_PATH}:/tmp/docker.sock:ro"
       - "${DOCKER_CONFIG_ROOT}/proxy/conf.d:/etc/nginx/conf.d"
@@ -30,13 +36,16 @@ services:
 
   # 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
   proxy-acme:
     image: nginxproxy/acme-companion
     container_name: "${DOCKER_CONTAINER_NAME_PREFIX}-proxy-acme"
     restart: unless-stopped
     profiles:
-      - ${DOCKER_PROXY_ACME_PROFILE}
+      - ${DOCKER_PROXY_ACME_PROFILE:-}
     environment:
       DEBUG: 0
       DEFAULT_EMAIL: "${LETSENCRYPT_EMAIL}"

+ 4 - 0
docker/faq.md

@@ -26,3 +26,7 @@ No problem! All you have to do is:
         1. `${APP_DOMAIN}.fullchain.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)
+
+## How do I change the container name prefix?
+
+Change the `DOCKER_CONTAINER_NAME_PREFIX` key/value pair in your `.env` file.