Skip to content

Commit e9e717b

Browse files
committed
update nginx-proxy and letsencrypt service name variable
1 parent 4296a2d commit e9e717b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.env.sample

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
# and the image version for each service, please note that if you use our script
1717
# we will replace the service name in docker-compose file with the container name
1818
#
19-
NGINX_WEB=proxy-web
19+
NGINX_WEB_SEVICE_NAME=proxy-web
2020
NGINX_IMAGE_VERSION=stable-alpine
2121

2222
DOCKER_GEN_SEVICE_NAME=docker-gen
2323
DOCKER_GEN_IMAGE_VERSION=latest
2424

25-
LETS_ENCRYPT=letsencrypt-companion
25+
LETS_ENCRYPT_SEVICE_NAME=letsencrypt-companion
2626
NGINX_PROXY_COMPANION_IMAGE_VERSION=2.0
2727

2828
#-----------------------------------------------------------------------

bin/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ REPLACE_LETSENCRYPT_SERVICE_NAME="nginx-proxy-automation-letsencrypt"
5757
# md5 checksum for .env and docker-compose.yml files
5858
#
5959
MD5_SUM_DOCKER_COMPOSE=5a9db4ac1b6fb25d683b8ed9929a7c42
60-
MD5_SUM_ENV_SAMPLE=29b1e64f20482a5a78416b7993f6d670
60+
MD5_SUM_ENV_SAMPLE=a24f8b55bc691fce5d1c49d89c5389ad

bin/localscript/update-env-new-site-variables.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ local_update_env_new_site_variables()
3434
[[ "$DEBUG" == true ]] && echo "Updating all variables in .env file for nginx-proxy (file: ${LOCAL_FILE_PATH})"
3535

3636
# Docker servides and image versions
37-
run_function env_update_variable $LOCAL_FILE_PATH "NGINX_WEB" "$NGINX_PROXY_SERVICE_NAME"
37+
run_function env_update_variable $LOCAL_FILE_PATH "NGINX_WEB_SEVICE_NAME" "$NGINX_PROXY_SERVICE_NAME"
3838
run_function env_update_variable $LOCAL_FILE_PATH "NGINX_IMAGE_VERSION" "$NGINX_PROXY_IMAGE_VERSION"
3939
run_function env_update_variable $LOCAL_FILE_PATH "DOCKER_GEN_SEVICE_NAME" "$DOCKER_GEN_SERVICE_NAME"
4040
run_function env_update_variable $LOCAL_FILE_PATH "DOCKER_GEN_IMAGE_VERSION" "$DOCKER_GEN_IMAGE_VERSION"
41-
run_function env_update_variable $LOCAL_FILE_PATH "LETS_ENCRYPT" "$LETSENCRYPT_SERVICE_NAME"
41+
run_function env_update_variable $LOCAL_FILE_PATH "LETS_ENCRYPT_SEVICE_NAME" "$LETSENCRYPT_SERVICE_NAME"
4242
run_function env_update_variable $LOCAL_FILE_PATH "NGINX_PROXY_COMPANION_IMAGE_VERSION" "$LETSENCRYPT_IMAGE_VERSION"
4343

4444
# IPs

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services:
55
image: nginx:${NGINX_IMAGE_VERSION:-stable-alpine}
66
labels:
77
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
8-
container_name: ${NGINX_WEB:-nginx-proxy-automation-web}
8+
container_name: ${NGINX_WEB_SEVICE_NAME:-nginx-proxy-automation-web}
99
restart: always
1010
ports:
1111
- "${IPv4:-0.0.0.0}:${DOCKER_HTTP:-80}:80"
@@ -28,7 +28,7 @@ services:
2828

2929
nginx-proxy-automation-gen:
3030
image: jwilder/docker-gen:${DOCKER_GEN_IMAGE_VERSION:-latest}
31-
command: -notify-sighup ${NGINX_WEB:-nginx-proxy-automation-web} -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
31+
command: -notify-sighup ${NGINX_WEB_SEVICE_NAME:-nginx-proxy-automation-web} -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
3232
container_name: ${DOCKER_GEN_SEVICE_NAME:-nginx-proxy-automation-gen}
3333
restart: always
3434
volumes:
@@ -47,7 +47,7 @@ services:
4747

4848
nginx-proxy-automation-letsencrypt:
4949
image: jrcs/letsencrypt-nginx-proxy-companion:${NGINX_PROXY_COMPANION_IMAGE_VERSION:-2.0}
50-
container_name: ${LETS_ENCRYPT:-nginx-proxy-automation-letsencrypt}
50+
container_name: ${LETS_ENCRYPT_SEVICE_NAME:-nginx-proxy-automation-letsencrypt}
5151
restart: always
5252
volumes:
5353
- ${NGINX_FILES_PATH:-./data}/conf.d:/etc/nginx/conf.d
@@ -58,7 +58,7 @@ services:
5858
- /var/run/docker.sock:/var/run/docker.sock:ro
5959
environment:
6060
NGINX_DOCKER_GEN_CONTAINER: ${DOCKER_GEN_SEVICE_NAME:-nginx-proxy-automation-gen}
61-
NGINX_PROXY_CONTAINER: ${NGINX_WEB:-nginx-proxy-automation-web}
61+
NGINX_PROXY_CONTAINER: ${NGINX_WEB_SEVICE_NAME:-nginx-proxy-automation-web}
6262
DEFAULT_EMAIL: ${DEFAULT_EMAIL:[email protected]}
6363
logging:
6464
driver: ${NGINX_LETSENCRYPT_LOG_DRIVER:-json-file}

0 commit comments

Comments
 (0)