More NGINX hosts stuff
This commit is contained in:
@@ -6,8 +6,6 @@ services:
|
|||||||
container_name: nginx
|
container_name: nginx
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: nginx -c /config/nginx.conf
|
command: nginx -c /config/nginx.conf
|
||||||
environment:
|
|
||||||
- HOST_IP=$(route -n | awk '/UG[ \t]/{print $2}')
|
|
||||||
volumes:
|
volumes:
|
||||||
- /home/nick/configs/routing/nginx:/config
|
- /home/nick/configs/routing/nginx:/config
|
||||||
- /mnt/storage:/static:ro
|
- /mnt/storage:/static:ro
|
||||||
@@ -16,6 +14,8 @@ services:
|
|||||||
- 443:443
|
- 443:443
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
certbot:
|
certbot:
|
||||||
image: certbot/dns-cloudflare
|
image: certbot/dns-cloudflare
|
||||||
|
Reference in New Issue
Block a user