Skip to content

Commit b385ae0

Browse files
author
SPRINX0\prochazka
committed
tp on docker
1 parent 51fed54 commit b385ae0

2 files changed

Lines changed: 48 additions & 7 deletions

File tree

content/env-variables.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ These variables are available only in Team Premium edition.
1919
* STORAGE_PASSWORD - database password
2020
* STORAGE_PORT - database port (optional. of omitted, default port for selected database engine is used)
2121
* STORAGE_DATABASE - storage database name
22+
* STORAGE_SCHEMA - storage database schema (optional, eg. for PostgreSQL (typically public) or MS SQL (typically dbo))
2223
* STORAGE_ENGINE - engine used for storage database. Currectly, MySQL, PostgreSQL, SQL Server and Oracle. Use one of following values:
2324
* mysql@dbgate-plugin-mysql
2425
* postgres@dbgate-plugin-postgres
2526
* mssql@dbgate-plugin-mssql
2627
* oracle@dbgate-plugin-oracle
2728
* ADMIN_PASSWORD - password for administrator. Administration is available on URL https://dbgate_url/admin.html. If password is not defined and STORAGE_DATABASE is defined, DbGate asks for admin password at first.
2829
* DBGATE_LICENSE - license key for DbGate. Please contact sales@dbgate.eu for trial license. If not defined, DbGate Premium asks for license at first. DbGate Community doesn't require any license.
29-
30+
3031
### Additional connection params of storage
3132
* STORAGE_SOCKET_PATH - socket path for storage connection
3233
* STORAGE_DATABASE_URL - database URL for storage connection

content/installation/docker-tp.md

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Docker Team Premium
2+
title: Team Premium on Docker
33
weight: 30
44
---
55

66
Typical Team Premium installation consists of two components:
77
- DbGate server docker container
8-
- Database server (MS SQL, MySQL, PostgreSQL, Oracle) - internal storage database for connections, users and roles
8+
- Database server (MS SQL, MySQL, PostgreSQL, Oracle) - internal storage database for connections, users and roles. You could use existing database server or install new one.
99

1010
## DbGate Server Docker Container
1111
User [DbGate Team Premium image](https://hub.docker.com/r/dbgate/dbgate-premium) from Docker Hub:
@@ -18,16 +18,56 @@ DbGate Team Premium container requires some environment variables to be set:
1818

1919
See [environment variables documentation](/env-variables/#team-premium-edition-configuration) for more details about available environment variables.
2020

21+
## Resource Requirements
22+
2123
In fact, DbGate Team Premium has very low resource consumption, but for best performance we recommend following configuration (for 10 concurrent users):
22-
- Minimum 2 CPU cores
23-
- Minimum 4 GB RAM
24-
- Minimum 10 GB free disk space
24+
- 2 CPU cores
25+
- 4 GB RAM
26+
- 10 GB free disk space (for temporary files, query results, etc. Actual disk space consumption depends on usage patterns)
27+
28+
For single-user installations, you could use much lower resource limits (1 GB RAM, 1 CPU core).
29+
30+
## Configuring docker
2531

2632
If you want to use disk files for storage of user files (like query results export), you should map `/root/.dbgate` path in container.
2733

34+
Below is example `docker-compose.yml` file, definiting DbGate Team Premium container with PostgreSQL as internal storage database.
35+
- You could define `DBGATE_LICENSE` environment variable to set license key. If not set, DbGate will ask for license key on first start.
36+
- You could define 'ADMIN_PASSWORD' environment variable to set admin user password. If not set, DbGate will ask for admin password on first start.
37+
2838
```yaml
39+
version: '3'
40+
services:
41+
dbgate:
42+
image: dbgate/dbgate-premium
43+
restart: always
44+
ports:
45+
- 80:3000
46+
environment:
47+
STORAGE_SERVER: postgres_service
48+
STORAGE_USER: postgres
49+
STORAGE_PASSWORD: XXXStoragePwd
50+
STORAGE_PORT: 5432
51+
STORAGE_DATABASE: dbgate
52+
STORAGE_ENGINE: postgres@dbgate-plugin-postgres
53+
STORAGE_SCHEMA: public
2954
volumes:
30-
- dbgate-data:/root/.dbgate
55+
- dbgate_data:/root/.dbgate
56+
57+
postgres_service:
58+
image: postgres
59+
restart: always
60+
environment:
61+
POSTGRES_PASSWORD: XXXStoragePwd
62+
POSTGRES_DB: dbgate
63+
volumes:
64+
- postgres_data:/var/lib/postgresql/data
65+
66+
volumes:
67+
postgres_data:
68+
driver: local
69+
dbgate_data:
70+
driver: local
3171
```
3272
3373
## Stateless/Statefullness

0 commit comments

Comments
 (0)