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
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
# To test:
|
||||
# curl -k -H "Host: host1.local" https://127.0.0.1/
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -104,8 +104,6 @@ docker stack deploy -c portainer.yml portainer
|
|||
### easyhaproxy.yml
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
@ -152,8 +150,6 @@ Service labels are similar to container labels but applied to **services**, not
|
|||
### Basic Service Example
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
webapp:
|
||||
image: nginx:alpine
|
||||
|
|
@ -188,8 +184,6 @@ labels:
|
|||
### Use Case 1: Simple HTTP Service
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
myapp:
|
||||
image: my-app:latest
|
||||
|
|
@ -215,8 +209,6 @@ docker stack deploy -c myapp.yml myapp
|
|||
### Use Case 2: HTTPS with Let's Encrypt
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
secure-app:
|
||||
image: secure-app:latest
|
||||
|
|
@ -296,8 +288,6 @@ services:
|
|||
### Use Case 5: Multiple Services with Load Balancing
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
frontend:
|
||||
image: frontend-app:latest
|
||||
|
|
@ -349,8 +339,6 @@ networks:
|
|||
Secure your API with JWT token validation in Swarm:
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
@ -421,8 +409,6 @@ curl -H "Authorization: Bearer eyJhbGc..." http://api.example.com/users
|
|||
Restore original visitor IPs in Swarm environment:
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
@ -480,8 +466,6 @@ docker stack deploy -c cloudflare-stack.yml myapp
|
|||
Restrict admin panel to specific IPs in Swarm:
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
admin:
|
||||
image: admin-panel:latest
|
||||
|
|
@ -522,8 +506,6 @@ curl http://admin.example.com
|
|||
Production-ready setup with multiple security layers:
|
||||
|
||||
```yaml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
@ -750,7 +732,7 @@ Place certificate files:
|
|||
docker secret create example_com_cert ./example.com.pem
|
||||
|
||||
# Use in stack
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
secrets:
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@
|
|||
# docker stack deploy -c easyhaproxy.yml easyhaproxy
|
||||
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.6.0
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
# To install:
|
||||
# docker stack deploy -c portainer.yml portainer
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
portainer:
|
||||
image: portainer/portainer-ce:latest
|
||||
|
|
|
|||
|
|
@ -18,8 +18,6 @@
|
|||
# Test SSL:
|
||||
# openssl s_client -showcerts -connect 127.0.0.1:443 -servername host1.local
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
container:
|
||||
image: byjg/static-httpserver
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue