mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 10:24:53 +01:00
build
This commit is contained in:
55
__swarm/nginx/nginx-swarm.yml
Normal file
55
__swarm/nginx/nginx-swarm.yml
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
networks:
|
||||||
|
pihole_pihole:
|
||||||
|
external: true
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
dns:
|
||||||
|
- 192.168.78.254
|
||||||
|
healthcheck:
|
||||||
|
interval: 10s
|
||||||
|
test:
|
||||||
|
- CMD
|
||||||
|
- /usr/bin/check-health
|
||||||
|
timeout: 3s
|
||||||
|
image: jc21/nginx-proxy-manager:latest
|
||||||
|
networks:
|
||||||
|
- pihole_pihole
|
||||||
|
ports:
|
||||||
|
- target: 80
|
||||||
|
published: 8099
|
||||||
|
protocol: tcp
|
||||||
|
mode: ingress
|
||||||
|
- target: 443
|
||||||
|
published: 4439
|
||||||
|
protocol: tcp
|
||||||
|
mode: ingress
|
||||||
|
- target: 81
|
||||||
|
published: 81
|
||||||
|
protocol: tcp
|
||||||
|
mode: ingress
|
||||||
|
volumes:
|
||||||
|
- data:/data
|
||||||
|
- letsencrypt:/etc/letsencrypt
|
||||||
|
deploy:
|
||||||
|
labels:
|
||||||
|
homepage.container: nginx-app-1
|
||||||
|
homepage.description: Reverse Proxy
|
||||||
|
homepage.group: Infrastructure
|
||||||
|
homepage.href: http://active.home.lan:81
|
||||||
|
homepage.icon: nginx-proxy-manager.png
|
||||||
|
homepage.name: Nginx
|
||||||
|
homepage.server: my-docker-swarm
|
||||||
|
homepage.weight: '25'
|
||||||
|
homepage.widget.password: OdyAJvifHvDPMOyFdbiKak5S
|
||||||
|
homepage.widget.type: npm
|
||||||
|
homepage.widget.url: http://active.home.lan:81
|
||||||
|
homepage.widget.username: monitoring@sectorq.eu
|
||||||
|
wud.watch: 'true'
|
||||||
|
wud.watch.digest: 'true'
|
||||||
|
replicas: 1
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
|
volumes:
|
||||||
|
data:
|
||||||
|
letsencrypt:
|
||||||
Reference in New Issue
Block a user