1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| cat <<EOF | tee docker-compose.yml
version: '3'
services:
dbgate:
image: dbgate/dbgate:5.4.0
restart: always
ports:
- 80:3000
volumes:
- dbgate-data:/root/.dbgate
environment:
CONNECTIONS: con1,con2,con3,con4
LABEL_con1: MySql
SERVER_con1: dockerhost
USER_con1: test
PASSWORD_con1: password
PORT_con1: 3306
ENGINE_con1: mysql@dbgate-plugin-mysql
LABEL_con2: Postgres
SERVER_con2: postgres
USER_con2: test
PASSWORD_con2: password
PORT_con2: 5432
ENGINE_con2: postgres@dbgate-plugin-postgres
LABEL_con3: Oracle
SERVER_con3: dockerhost
SERVICENAME_con3: FREEPDB1
USER_con3: test
PASSWORD_con3: password
PORT_con3: 1521
ENGINE_con3: oracle@dbgate-plugin-oracle
LABEL_con4: Redis
SERVER_con4: dockerhost
ENGINE_con4: redis@dbgate-plugin-redis
volumes:
dbgate-data:
driver: local
EOF
docker compose up -d
docker compose down
|