Add HOST_IP variable to nginx container

This commit is contained in:
2022-03-08 19:24:41 +00:00
parent ed49261588
commit bbee1b0ae5

View File

@@ -6,6 +6,8 @@ services:
container_name: nginx
restart: unless-stopped
command: nginx -c /config/nginx.conf
environment:
- HOST_IP=$(route -n | awk '/UG[ \t]/{print $2}')
volumes:
- /home/nick/configs/routing/nginx:/config
- /mnt/storage:/static:ro