Skip to content

Commit bbefe93

Browse files
authored
Merge pull request #62 from dbeaver/dbeaver/dbeaver-devops#1956-revert-back-to-nginx-as-default-proxy-main
Dbeaver/dbeaver devops#1956 revert back to nginx as default proxy main
2 parents 6f3fe54 + 5177ab3 commit bbefe93

5 files changed

Lines changed: 18 additions & 14 deletions

File tree

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COMPOSE_PROJECT_NAME=dbeaver
55
CLOUDBEAVER_WEB_SERVER_PORT=8978
66

77
# Type of web server. Supported values: nginx, haproxy
8-
PROXY_TYPE=haproxy
8+
PROXY_TYPE=nginx
99

1010
CLOUDBEAVER_DB_DRIVER=postgres-jdbc
1111
CLOUDBEAVER_DB_URL=jdbc:postgresql://postgres:5432/cloudbeaver

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ Previously, the volumes were owned by the ‘root’ user, but now they are owne
3232

3333
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:
3434

35-
`PROXY_TYPE=haproxy` # Available options: nginx, haproxy
35+
`PROXY_TYPE=nginx` # Available options: nginx, haproxy
3636

37-
The default value is `haproxy`. Switching between proxy types is seamless: configuration files and SSL certificates are retained due to shared Docker volumes.
37+
The default value is `nginx`. Switching between proxy types is seamless: configuration files and SSL certificates are retained due to shared Docker volumes.
3838
However, note that the container name has changed from `nginx` to `web-proxy`.
3939

4040
#### Proxy listen ports

docker-compose-host.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ volumes:
77
nginx_ssl_data: {}
88
nginx_conf_data: {}
99
trusted_cacerts: {}
10-
10+
api_tokens: {}
1111
services:
1212
web-proxy:
1313
restart: unless-stopped
14-
image: ${IMAGE_SOURCE:-dbeaver}/cloudbeaver-${PROXY_TYPE:-haproxy}:${CLOUDBEAVER_VERSION_TAG}
14+
image: ${IMAGE_SOURCE:-dbeaver}/cloudbeaver-${PROXY_TYPE:-nginx}:${CLOUDBEAVER_VERSION_TAG}
1515
network_mode: host
1616
environment:
1717
- NETWORK_MODE=host
1818
- LISTEN_PORT_HTTP=80
1919
- LISTEN_PORT_HTTPS=443
2020
volumes:
21-
- nginx_conf_data:/etc/${PROXY_TYPE:-haproxy}/product-conf/
22-
- nginx_ssl_data:/etc/${PROXY_TYPE:-haproxy}/ssl/
21+
- nginx_conf_data:/etc/${PROXY_TYPE:-nginx}/product-conf/
22+
- nginx_ssl_data:/etc/${PROXY_TYPE:-nginx}/ssl/
2323
depends_on:
2424
- cloudbeaver
2525

@@ -32,6 +32,7 @@ services:
3232
- cloudbeaver:/opt/cloudbeaver/workspace
3333
- cloudbeaver_certs:/opt/cloudbeaver/conf/certificates/
3434
- trusted_cacerts:/opt/cloudbeaver/workspace/.data/custom/
35+
- api_tokens:/opt/cloudbeaver/conf/keys/
3536
environment:
3637
- CLOUDBEAVER_DB_DRIVER=${CLOUDBEAVER_DB_DRIVER}
3738
- CLOUDBEAVER_DB_URL=${CLOUDBEAVER_DB_URL}

docker-compose.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ volumes:
77
nginx_ssl_data: {}
88
nginx_conf_data: {}
99
trusted_cacerts: {}
10-
10+
api_tokens: {}
1111
networks:
1212
cloudbeaver-private-net:
1313

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

@@ -36,6 +36,7 @@ services:
3636
- cloudbeaver:/opt/cloudbeaver/workspace
3737
- cloudbeaver_certs:/opt/cloudbeaver/conf/certificates/
3838
- trusted_cacerts:/opt/cloudbeaver/workspace/.data/custom/
39+
- api_tokens:/opt/cloudbeaver/conf/keys/
3940
environment:
4041
- CLOUDBEAVER_DB_DRIVER=${CLOUDBEAVER_DB_DRIVER}
4142
- CLOUDBEAVER_DB_URL=${CLOUDBEAVER_DB_URL}

podman-compose.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ volumes:
1111
nginx_ssl_data: {}
1212
nginx_conf_data: {}
1313
trusted_cacerts: {}
14+
api_tokens: {}
1415
networks:
1516
cloudbeaver-private-net: null
1617
services:
1718
web-proxy:
1819
restart: unless-stopped
19-
image: ${PODMAN_IMAGE_SOURCE:-docker.io/dbeaver}/cloudbeaver-${PROXY_TYPE:-haproxy}:${CLOUDBEAVER_VERSION_TAG}
20+
image: ${PODMAN_IMAGE_SOURCE:-docker.io/dbeaver}/cloudbeaver-${PROXY_TYPE:-nginx}:${CLOUDBEAVER_VERSION_TAG}
2021
ports:
2122
- 80:8080
2223
- 443:8443
@@ -25,8 +26,8 @@ services:
2526
networks:
2627
- cloudbeaver-private-net
2728
volumes:
28-
- nginx_conf_data:/etc/${PROXY_TYPE:-haproxy}/product-conf/:z
29-
- nginx_ssl_data:/etc/${PROXY_TYPE:-haproxy}/ssl/:z
29+
- nginx_conf_data:/etc/${PROXY_TYPE:-nginx}/product-conf/:z
30+
- nginx_ssl_data:/etc/${PROXY_TYPE:-nginx}/ssl/:z
3031
depends_on:
3132
- cloudbeaver
3233
cloudbeaver:
@@ -39,6 +40,7 @@ services:
3940
- cloudbeaver:/opt/cloudbeaver/workspace:z
4041
- cloudbeaver_certs:/opt/cloudbeaver/conf/certificates/:z
4142
- trusted_cacerts:/opt/cloudbeaver/workspace/.data/custom/:z
43+
- api_tokens:/opt/cloudbeaver/conf/keys/:z
4244
environment:
4345
- CLOUDBEAVER_DB_DRIVER=${CLOUDBEAVER_DB_DRIVER}
4446
- CLOUDBEAVER_DB_URL=${CLOUDBEAVER_DB_URL}

0 commit comments

Comments
 (0)