| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- ---
- kind: compose
- schema: "1.2"
- metadata:
- icon:
- provider: selfh
- id: nginx
- name: Nginx
- description: |-
- Nginx is a high-performance web server, reverse proxy, and load balancer known for its stability, rich feature set, simple configuration, and low resource
- consumption. It is widely used to serve static content, handle HTTP requests, and distribute traffic across multiple servers.
- ## Prerequisites
- * **Project:** https://nginx.org/
- * **Documentation:** https://nginx.org/en/docs/
- * **GitHub:** https://github.com/nginx/nginx
- version: 1.28.0-alpine
- author: Christian Lempa
- date: '2023-10-01'
- tags:
- - traefik
- - swarm
- draft: true
- spec:
- general:
- vars:
- service_name:
- default: "nginx"
- restart_policy:
- type: enum
- options: ["unless-stopped", "always", "on-failure", "no"]
- default: "unless-stopped"
- container_name:
- default: "nginx"
- container_timezone:
- default: "UTC"
- ports:
- vars:
- ports_http:
- description: HTTP port for nginx service
- type: int
- default: 8080
- ports_https:
- description: HTTPS port for nginx service
- type: int
- default: 8443
- traefik:
- vars:
- traefik_enabled:
- type: bool
- default: false
- traefik_network:
- default: "traefik"
- traefik_host:
- default: "nginx"
- traefik_domain:
- default: "home.arpa"
- traefik_entrypoint:
- default: "web"
- traefik_tls_entrypoint:
- default: "websecure"
- traefik_tls_enabled:
- type: bool
- default: true
- traefik_tls_certresolver:
- default: "cloudflare"
- network:
- vars:
- network_mode:
- type: enum
- options: ["bridge", "host", "macvlan"]
- default: "bridge"
- network_name:
- default: "bridge"
- swarm:
- vars:
- swarm_enabled:
- type: bool
- default: false
- swarm_replicas:
- description: Number of replicas for Swarm mode
- type: int
- default: 1
|