Remove version directive from all Docker Compose and Swarm configuration files.
- Eliminated the `version` field across various examples and documentation for simplicity and alignment with newer Docker Compose and Swarm standards. - Updated relevant documentation and example usage instructions accordingly.
This commit is contained in:
parent
99f4ff325b
commit
5397f0166e
20 changed files with 11 additions and 71 deletions
|
|
@ -172,6 +172,11 @@ curl -I -H "Host: google.helloworld.com" localhost:19901
|
|||
- Running Portainer behind EasyHAProxy
|
||||
- Real-world application example
|
||||
|
||||
**Usage:**
|
||||
```bash
|
||||
docker compose -f docker-compose-portainer.yml up -d
|
||||
```
|
||||
|
||||
**Access Portainer:**
|
||||
- URL: http://portainer.local (add to `/etc/hosts` or use real DNS)
|
||||
- First time: Create admin user
|
||||
|
|
@ -184,6 +189,11 @@ curl -I -H "Host: google.helloworld.com" localhost:19901
|
|||
- Multiple applications behind EasyHAProxy
|
||||
- Portainer + custom app setup
|
||||
|
||||
**Usage:**
|
||||
```bash
|
||||
docker compose -f docker-compose-portainer-app-example.yml up -d
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Plugin Examples
|
||||
|
|
@ -212,8 +222,6 @@ Run PHP applications with FastCGI protocol support:
|
|||
|
||||
**Configuration:**
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
@ -304,8 +312,6 @@ The `php-app/` directory contains:
|
|||
Protect your API with JWT token validation:
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
@ -370,8 +376,6 @@ openssl rsa -in jwt_private.pem -pubout -out jwt_pubkey.pem
|
|||
Restore original visitor IPs when using Cloudflare CDN:
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
@ -413,8 +417,6 @@ curl https://www.cloudflare.com/ips-v6 >> cloudflare_ips.lst
|
|||
Restrict access to specific IP addresses:
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
@ -460,8 +462,6 @@ curl http://admin.example.com
|
|||
Combine multiple plugins for enhanced security:
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
# - public IP pointing your machine
|
||||
# - open ports 80 and 443 in your firewall
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
# or add to /etc/hosts
|
||||
# 127.0.0.1 host1.local
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -24,8 +24,6 @@
|
|||
# Without Cloudflare, the request won't come from Cloudflare IPs, so the plugin
|
||||
# won't activate. This example is for demonstration and testing purposes.
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@
|
|||
#
|
||||
# Note: Update the allowed_ips label with your actual IP addresses/networks
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -27,8 +27,6 @@
|
|||
# curl -H "Authorization: Bearer $TOKEN" http://api.local/
|
||||
# # Response: Success
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@
|
|||
# content-length: 0
|
||||
# location: www.google.com/
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@
|
|||
# - PATH_INFO support for routing
|
||||
# - Custom FastCGI parameters
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -29,8 +29,6 @@
|
|||
# # Admin panel (IP whitelist only)
|
||||
# curl http://admin.local/ # Success from localhost
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
version: "3"
|
||||
|
||||
services:
|
||||
container:
|
||||
image: byjg/static-httpserver
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@
|
|||
# docker network create easyhaproxy
|
||||
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
easyhaproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@
|
|||
# Test SSL:
|
||||
# openssl s_client -showcerts -connect 127.0.0.1:443 -servername host1.local
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue