1
0
Fork 0
This commit is contained in:
root 2023-09-25 13:08:21 -04:00
parent a2a4ef19ee
commit fa29897d55
2 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: codeberg.org/Iridium-net/lan-to-nginx:latest image: codeberg.org/iridium-net/lan-to-nginx:latest
environment: environment:
- BACKEND_ADDRESS=192.168.8.1 # Replace with your backend address - BACKEND_ADDRESS=192.168.8.1 # Replace with your backend address
- BACKEND_PORT=80 # Replace with your backend port - BACKEND_PORT=80 # Replace with your backend port

View File

@ -5,8 +5,8 @@ networks:
external: true external: true
services: services:
nginx-proxy: unifi:
image: codeberg.org/Iridium-net/lan-to-nginx:latest image: codeberg.org/iridium-net/lan-to-nginx:latest
environment: environment:
- BACKEND_ADDRESS=192.168.8.1 - BACKEND_ADDRESS=192.168.8.1
- BACKEND_PORT=80 - BACKEND_PORT=80
@ -16,13 +16,13 @@ services:
replicas: 1 replicas: 1
placement: placement:
constraints: constraints:
- node.hostname == ingress.nixc.us - node.hostname == macmini7
labels: labels:
- "us.nixc.autodeploy=true" - "us.nixc.autodeploy=true"
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.nginx-proxy.tls=true" - "traefik.http.routers.nginx-proxy.tls=true"
- "traefik.http.services.nginx-proxy.loadbalancer.server.port=80" - "traefik.http.services.nginx-proxy.loadbalancer.server.port=80"
- "traefik.http.routers.nginx-proxy.rule=Host(`nginx-proxy.example.com`)" - "traefik.http.routers.nginx-proxy.rule=Host(`unifi.nixc.us`)"
- "traefik.http.routers.nginx-proxy.entrypoints=websecure" - "traefik.http.routers.nginx-proxy.entrypoints=websecure"
- "traefik.http.routers.nginx-proxy.tls.certresolver=letsencryptresolver" - "traefik.http.routers.nginx-proxy.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.nginx-proxy.service=nginx-proxy" - "traefik.http.routers.nginx-proxy.service=nginx-proxy"