You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/glossary.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -289,6 +289,9 @@ DPI
289
289
Docker
290
290
[Docker](https://www.docker.com/) is an open platform for developing, shipping, and running applications using containers.
291
291
292
+
Docker Compose
293
+
[Docker Compose](https://docs.docker.com/compose/) is a tool for defining and running multi-container Docker applications.
294
+
292
295
RelStorage
293
296
[RelStorage](https://relstorage.readthedocs.io/en/latest/) is a storage implementation for ZODB that stores pickles in a relational database.
294
297
@@ -297,4 +300,10 @@ ZEO
297
300
298
301
PostgreSQL
299
302
[PostgreSQL](https://www.postgresql.org/) is a powerful, open source object-relational database.
303
+
304
+
HAProxy
305
+
[HAProxy](https://www.haproxy.org/) is a free, very fast and reliable reverse-proxy offering high availability, load balancing, and proxying for TCP and HTTP-based applications.
306
+
307
+
nginx
308
+
[nginx](https://docs.nginx.com/nginx/) (pronounced "engine x") is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.
This example is a very simple setup with one or more backend instances accessing a ZEO server and data being persisted in a Docker volume.
12
+
13
+
{term}`HAProxy` is used for load balancing in this example.
14
+
We will use the image [`plone/plone-haproxy`](https://github.com/plone/plone-haproxy).
15
+
16
+
17
+
## Setup
18
+
19
+
Create a directory for your project, and inside it create a `docker-compose.yml` file that starts your Plone instance and the ZEO instance with volume mounts for data persistence.
20
+
21
+
```yaml
22
+
version: "3"
23
+
services:
24
+
25
+
lb:
26
+
image: plone/plone-haproxy
27
+
depends_on:
28
+
- backend
29
+
ports:
30
+
- "8080:8080"
31
+
- "1936:1936"
32
+
environment:
33
+
FRONTEND_PORT: "8080"
34
+
BACKENDS: "backend"
35
+
BACKENDS_PORT: "8080"
36
+
DNS_ENABLED: "True"
37
+
HTTPCHK: "GET /"
38
+
INTER: "5s"
39
+
LOG_LEVEL: "info"
40
+
41
+
backend:
42
+
image: plone/plone-backend:6.0.0a4
43
+
restart: always
44
+
environment:
45
+
ZEO_ADDRESS: zeo:8100
46
+
ports:
47
+
- "8080"
48
+
depends_on:
49
+
- zeo
50
+
51
+
zeo:
52
+
image: plone/plone-zeo:latest
53
+
restart: always
54
+
volumes:
55
+
- data:/data
56
+
ports:
57
+
- "8100"
58
+
59
+
volumes:
60
+
data: {}
61
+
```
62
+
63
+
64
+
## Build the project with multiple backends
65
+
66
+
Run `docker compose up -d --scale backend=4` from your project directory.
67
+
68
+
69
+
## Access Plone via Browser
70
+
71
+
Point your browser at `http://localhost:8080`.
72
+
Login using the username and password combination of `admin` and `admin`.
73
+
You should see the default Plone site creation page.
74
+
75
+
76
+
## Access HAProxy Stats Page via Browser
77
+
78
+
Point your browser at `http://localhost:1936`.
79
+
Login using the username and password combination of `admin` and `admin`.
80
+
You should see HAProxy statistics for your Plone cluster.
81
+
82
+
83
+
## Shutdown and cleanup
84
+
85
+
The command `docker compose down` removes the containers and default network, but preserves the Plone database.
86
+
87
+
The command `docker compose down --volumes` removes the containers, default network, and the Plone database.
Copy file name to clipboardExpand all lines: docs/install/containers/examples/nginx-volto-plone-postgresql.md
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,15 @@
2
2
html_meta:
3
3
"description": "Very simple Plone 6 setup with only one or more backend instances accessing a PostgreSQL server and data being persisted in a Docker volume."
4
4
"property=og:description": "Very simple Plone 6 setup with only one or more backend instances accessing a PostgreSQL server and data being persisted in a Docker volume."
Copy file name to clipboardExpand all lines: docs/install/containers/examples/nginx-volto-plone-zeo.md
+18-11Lines changed: 18 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,15 @@
2
2
html_meta:
3
3
"description": "Very simple Plone 6 setup with only one or more backend instances accessing a ZEO server and data being persisted in a Docker volume."
4
4
"property=og:description": "Very simple Plone 6 setup with only one or more backend instances accessing a ZEO server and data being persisted in a Docker volume."
0 commit comments