add customisable Nginx tag

This commit is contained in:
James 2022-05-30 20:29:19 +01:00
parent a698754dcd
commit 968bf5dbe7
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,4 @@
FROM nginx:stable
ARG NGINX_TAG
FROM nginx:${NGINX_TAG}
COPY ./includes/ /etc/nginx/includes

View File

@ -4,7 +4,10 @@ networks:
services:
nginx:
build: ./
build:
context: ./
args:
NGINX_TAG: ${NGINX_TAG-stable}
restart: unless-stopped
networks:
- proxy