Better vars

This commit is contained in:
eroncero
2025-08-04 09:47:48 +02:00
parent 24bdc06190
commit 022c2ea5de
2 changed files with 25 additions and 8 deletions

View File

@@ -1,9 +1,14 @@
services:
nginx-srv:
image: eroncero/nginx-srv
image: eroncero/nginx-srv:latest
build:
context: ./nginx-srv
dockerfile: Dockerfile
ports:
- "127.0.0.1:${NGINX_HTTP_PORT}:${HOST_HTTP_PORT}"
- "[::1]:${NGINX_HTTPS_PORT}:${HOST_HTTPS_PORT}"
- "${NGINX_HTTP_IPV4_HOST}:${NGINX_HTTP_IPV4_PORT}:${NGINX_CONTAINER_HTTP_PORT}"
- "${NGINX_HTTP_IPV6_HOST}:${NGINX_HTTP_IPV6_PORT}:${NGINX_CONTAINER_HTTP_PORT}"
- "${NGINX_HTTPS_IPV4_HOST}:${NGINX_HTTPS_IPV4_PORT}:${NGINX_CONTAINER_HTTPS_PORT}"
- "${NGINX_HTTPS_IPV6_HOST}:${NGINX_HTTPS_IPV6_PORT}:${NGINX_CONTAINER_HTTPS_PORT}"
restart: unless-stopped
volumes:
- ./nginx-srv/sites-available:/etc/nginx/sites-available