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
|
|
@ -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