Skip to content

Commit 6f3fe54

Browse files
ggxedarhayka
andauthored
dbeaver/pro#5931 merge devel into main (#58)
* dbeaver/dbeaver-devops#1714 Updated devel ea version * dbeaver/dbeaver-devops#1714 Fixed env * dbeaver/dbeaver-devops#1838 Fixed ingress type and ingressClassName (#48) * dbeaver/dbeaver-devops#1838 Fixed ingress type and ingressClassName * dbeaver/dbeaver-devops#1670 Changed nginx to haproxy configuration (#39) * dbeaver/dbeaver-devops#1670 Changed nginx to haproxy configuration * dbeaver/dbeaver-devops#1670 Changed image name to cloudbeaver-proxy * dbeaver/dbeaver-devops#1670 Changed name proxy service to web-proxy and image name to haproxy * dbeaver/dbeaver-devops#1679 Reverted ngixn volumes names * dbeaver/dbeaver-devops#1670 Fixed DMSC url * dbeaver/dbeaver-devops#1670 Changed haproxy conf volume * dbeaver/dbeaver-devops#1670 Changed haproxy conf volume * dbeaver/dbeaver-devops#1670 Revert volume nginx_conf_data * dbeaver/dbeaver-devops#1670 Added template for changin proxy type via env param * dbeaver/dbeaver-devops#1670 Added template for changin proxy type via env param * dbeaver/dbeaver-devops#1670 Adde default value PROXY_TYPE -haproxy * dbeaver/dbeaver-devops#1670 Fixed default value for IMAGE_SOURCE and fix volume PROXY_TYPE value * dbeaver/dbeaver-devops#1670 Remove CLOUDBEAVER_DMSVC_URL and made CLOUDBEAVER_DMSVC_URL=http://web-proxy:11000 hardcoded in product code * dbeaver/dbeaver-devops#1848 edit docs: remove node balancing * dbeaver/dbeaver-devops#1847 Describe Haproxy feature in cloudbeaver-d… (#50) * dbeaver/dbeaver-devops#1847 Describe Haproxy feature in cloudbeaver-deploy * dbeaver/dbeaver-devops#1847 Formated * Dbeaver/dbeaver devops#1884 make all deployments configs example prefix (#52) * dbeaver/dbeaver-devops#1884 Made variables.tf and .env with prefix example and add .evn variables.tf in gitignore * dbeaver/dbeaver-devops#1884 Adde .env.example * dbeaver/dbeaver-devops#1884 Moved example from prefix to suffix in varible.tf * dbeaver/dbeaver-devops#1884 Moved example from prefix to suffix in varible.tf * dbeaver/dbeaver-devops#1884 Removed REPLICA_COUNT_EE from deployment * dbeaver/dbeaver-devops#1884 Changed http:// —> https:// in access the app * dbeaver/pro#5931 update devel to 25 1 0 (#54) * dbeaver/pro#5931 Updated devel version to 25.1.0 * dbeaver/pro#5931 Removed old .env file (#56) --------- Co-authored-by: Anya Ovsyannikova <arhayka@gmail.com>
1 parent cc005bb commit 6f3fe54

10 files changed

Lines changed: 63 additions & 34 deletions

.env renamed to .env.example

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
CLOUDBEAVER_VERSION_TAG=25.0.0
1+
CLOUDBEAVER_VERSION_TAG=25.1.0
22
IMAGE_SOURCE=dbeaver
33
PODMAN_IMAGE_SOURCE=docker.io/dbeaver
44
COMPOSE_PROJECT_NAME=dbeaver
55
CLOUDBEAVER_WEB_SERVER_PORT=8978
6-
REPLICA_COUNT_EE=1
6+
7+
# Type of web server. Supported values: nginx, haproxy
8+
PROXY_TYPE=haproxy
79

810
CLOUDBEAVER_DB_DRIVER=postgres-jdbc
911
CLOUDBEAVER_DB_URL=jdbc:postgresql://postgres:5432/cloudbeaver

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
terraform*
33
values.yaml
44
/.idea
5-
trusted-cacerts/*
5+
trusted-cacerts/*
6+
.env
7+
variables.tf

AWS/ecs-fargate/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
**Note:** only [Amazon RDS for PostgreSQL](https://aws.amazon.com/rds/postgresql/) is supported. RDS database will be set up as an internal database for this deployment.
2121
- Navigate to `cloudbeaver-deploy/AWS/ecs-fargate`
22+
- Copy `variables.tf.example` to `variables.tf`
2223
- Open `variables.tf` file.
2324
- Specify `rds_db_version`, the default is `postgres:16.1`. Only PostgreSQL version can be specified.
2425
- Set the credentials for database in `cloudbeaver-db-env`. By default it is `postgres`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ variable "cloudbeaver_image_name" {
2525
variable "cloudbeaver_version" {
2626
description = "The version of the cluster you want to deploy"
2727
type = string
28-
default = "25.0.0"
28+
default = "25.1.0"
2929
}
3030

3131
variable "alb_certificate_Identifier" {

README.md

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CloudBeaver Enterprise deployment
22

3-
### Version 25.0
3+
### Version 25.1
44

55
CloudBeaver Enterprise is a client-server application.
66
It requires server deployment. You can deploy it on a single host (e.g. your local computer) or in a cloud.
@@ -11,9 +11,7 @@ It is the simplest way to install [CloudBeaver Enterprise Edition](https://dbeav
1111
All you need is a Linux, macOS, or Windows machine with Docker.
1212

1313
CloudBeaver can be run in a [single docker container](https://dbeaver.com/docs/cloudbeaver/CloudBeaver-Enterprise-deployment-from-docker-image/).
14-
However you can use Docker compose for additional product features such as:
15-
- Load balancing
16-
- Easy web server (HTTPS) configuration
14+
However you can use Docker compose for easy web server (HTTPS) configuration.
1715

1816
### System requirements
1917
- Minimum 4GB RAM
@@ -30,20 +28,49 @@ If a user with ‘UID=8978’ already exists in your environment, permission con
3028
Additionally, the default Docker volumes directory’s ownership has changed.
3129
Previously, the volumes were owned by the ‘root’ user, but now they are owned by the ‘dbeaver’ user (‘UID=8978’).
3230

31+
### Configuring proxy server (Nginx / HAProxy)
32+
33+
Starting from v25.1, CloudBeaver supports two types of proxy servers: Nginx and HAProxy. You can choose your preferred proxy type by setting the following variable in the .env file:
34+
35+
`PROXY_TYPE=haproxy` # Available options: nginx, haproxy
36+
37+
The default value is `haproxy`. Switching between proxy types is seamless: configuration files and SSL certificates are retained due to shared Docker volumes.
38+
However, note that the container name has changed from `nginx` to `web-proxy`.
39+
40+
#### Proxy listen ports
41+
42+
When using Docker Compose with host networking mode (network_mode: host), you may configure proxy ports using these environment variables:
43+
```
44+
LISTEN_PORT_HTTP=80
45+
LISTEN_PORT_HTTPS=443
46+
```
47+
These variables specify which ports the proxy listens to inside the container.
48+
49+
#### Notes for Nginx users
50+
51+
If you use Nginx as your proxy server and customize the `COMPOSE_PROJECT_NAME` in your .env file, make sure to pass this variable explicitly to the container environment:
52+
```
53+
environment:
54+
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME}
55+
```
56+
This step is only required for Nginx, as HAProxy resolves service names via Docker DNS automatically.
57+
3358
### Configuring and starting the CloudBeaver cluster
3459
1. Clone repository
3560
```sh
3661
git clone https://github.com/dbeaver/cloudbeaver-deploy
3762
```
38-
1. Open the configuration file
63+
2. Open the configuration file
64+
- Navigate to `cloudbeaver-deploy`
65+
- Copy `.env.example` to `.env`
3966
- Edit the `.env` file to set configuration properties
4067
- It is highly recommended to change the default database password in `CLOUDBEAVER_DB_PASSWORD` variable
41-
1. Start the cluster
68+
3. Start the cluster
4269
- `docker-compose up -d` or `docker compose up -d`
43-
1. Ensure the following TCP ports are available in your network stack
70+
4. Ensure the following TCP ports are available in your network stack
4471
- 80/tcp
4572
- 443/tcp (for HTTPS access)
46-
1. Open `http://<deployment-machine-ip-address>` to access the app. This URL will open the admin panel when the app is first started.
73+
5. Open `https://<deployment-machine-ip-address>` to access the app. This URL will open the admin panel when the app is first started.
4774

4875
### Stopping the cluster
4976
`docker-compose down`
@@ -75,6 +102,7 @@ or replace `docker-compose.yml` with `podman-compose.yml` and use `podman-compos
75102
3. Restart the cluster: `docker-compose up -d` or `docker compose up -d`
76103

77104
### Older versions:
105+
- [25.0.0](https://github.com/dbeaver/cloudbeaver-deploy/tree/25.0.0)
78106
- [24.3.0](https://github.com/dbeaver/cloudbeaver-deploy/tree/24.3.0)
79107
- [24.2.0](https://github.com/dbeaver/cloudbeaver-deploy/tree/24.2.0)
80108
- [24.1.0](https://github.com/dbeaver/cloudbeaver-deploy/tree/24.1.0)

docker-compose-host.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ volumes:
99
trusted_cacerts: {}
1010

1111
services:
12-
nginx:
12+
web-proxy:
1313
restart: unless-stopped
14-
image: $IMAGE_SOURCE/cloudbeaver-nginx:${CLOUDBEAVER_VERSION_TAG}
14+
image: ${IMAGE_SOURCE:-dbeaver}/cloudbeaver-${PROXY_TYPE:-haproxy}:${CLOUDBEAVER_VERSION_TAG}
1515
network_mode: host
1616
environment:
1717
- NETWORK_MODE=host
18-
- NGINX_LISTEN_PORT_HTTP=80
19-
- NGINX_LISTEN_PORT_HTTPS=443
18+
- LISTEN_PORT_HTTP=80
19+
- LISTEN_PORT_HTTPS=443
2020
volumes:
21-
- nginx_conf_data:/etc/nginx/product-conf/
22-
- nginx_ssl_data:/etc/nginx/ssl/
21+
- nginx_conf_data:/etc/${PROXY_TYPE:-haproxy}/product-conf/
22+
- nginx_ssl_data:/etc/${PROXY_TYPE:-haproxy}/ssl/
2323
depends_on:
2424
- cloudbeaver
2525

2626
cloudbeaver:
27-
image: $IMAGE_SOURCE/cloudbeaver-ee:${CLOUDBEAVER_VERSION_TAG}
27+
image: ${IMAGE_SOURCE:-dbeaver}/cloudbeaver-ee:${CLOUDBEAVER_VERSION_TAG}
2828
hostname: cloudbeaver
2929
network_mode: host
3030
restart: unless-stopped

docker-compose.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ networks:
1212
cloudbeaver-private-net:
1313

1414
services:
15-
nginx:
15+
web-proxy:
1616
restart: unless-stopped
17-
image: $IMAGE_SOURCE/cloudbeaver-nginx:${CLOUDBEAVER_VERSION_TAG}
17+
image: ${IMAGE_SOURCE:-dbeaver}/cloudbeaver-${PROXY_TYPE:-haproxy}:${CLOUDBEAVER_VERSION_TAG}
1818
ports:
1919
- 80:8080
2020
- 443:8443
@@ -23,17 +23,15 @@ services:
2323
networks:
2424
- cloudbeaver-private-net
2525
volumes:
26-
- nginx_conf_data:/etc/nginx/product-conf/
27-
- nginx_ssl_data:/etc/nginx/ssl/
26+
- nginx_conf_data:/etc/${PROXY_TYPE:-haproxy}/product-conf/
27+
- nginx_ssl_data:/etc/${PROXY_TYPE:-haproxy}/ssl/
2828
depends_on:
2929
- cloudbeaver
3030

3131
cloudbeaver:
3232
restart: unless-stopped
3333
hostname: cloudbeaver
34-
image: $IMAGE_SOURCE/cloudbeaver-ee:${CLOUDBEAVER_VERSION_TAG}
35-
deploy:
36-
replicas: ${REPLICA_COUNT_EE:-1}
34+
image: ${IMAGE_SOURCE:-dbeaver}/cloudbeaver-ee:${CLOUDBEAVER_VERSION_TAG}
3735
volumes:
3836
- cloudbeaver:/opt/cloudbeaver/workspace
3937
- cloudbeaver_certs:/opt/cloudbeaver/conf/certificates/

k8s/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: cb
33
description: A Helm chart for CloudBeaver application
44
type: application
55
version: 0.0.1
6-
appVersion: 25.0.0
6+
appVersion: 25.1.0
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
cloudbeaver:
77
replicaCount: 1
88
image: dbeaver/cloudbeaver-ee
9-
imageTag: "25.0.0"
9+
imageTag: "25.1.0"
1010
pullPolicy: Always
1111
# pullCredsName - name of a secret config map that contains docker repo auths
1212
# pullCredsName: regcred

podman-compose.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,19 @@ volumes:
1414
networks:
1515
cloudbeaver-private-net: null
1616
services:
17-
nginx:
17+
web-proxy:
1818
restart: unless-stopped
19-
image: ${PODMAN_IMAGE_SOURCE:-docker.io/dbeaver}/cloudbeaver-nginx:${CLOUDBEAVER_VERSION_TAG}
19+
image: ${PODMAN_IMAGE_SOURCE:-docker.io/dbeaver}/cloudbeaver-${PROXY_TYPE:-haproxy}:${CLOUDBEAVER_VERSION_TAG}
2020
ports:
2121
- 80:8080
2222
- 443:8443
2323
environment:
24-
- REPLICA_COUNT_EE=${REPLICA_COUNT_EE:-1}
25-
- COMPOSE_PROJECT_NAME=${COMPOSE_PROJECT_NAME:-dbeaver}
2624
- CLOUDBEAVER_WEB_SERVER_PORT=${CLOUDBEAVER_WEB_SERVER_PORT:-8978}
2725
networks:
2826
- cloudbeaver-private-net
2927
volumes:
30-
- nginx_conf_data:/etc/nginx/product-conf/:z
31-
- nginx_ssl_data:/etc/nginx/ssl/:z
28+
- nginx_conf_data:/etc/${PROXY_TYPE:-haproxy}/product-conf/:z
29+
- nginx_ssl_data:/etc/${PROXY_TYPE:-haproxy}/ssl/:z
3230
depends_on:
3331
- cloudbeaver
3432
cloudbeaver:

0 commit comments

Comments
 (0)