added dockercompose scripts
This commit is contained in:
26
pgadmin/compose.yaml
Normal file
26
pgadmin/compose.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
pgadmin4:
|
||||
hostname: pgadmin4
|
||||
image: dpage/pgadmin4:latest
|
||||
restart: always
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@netzwissen.de
|
||||
PGADMIN_DEFAULT_PASSWORD: R3V5rdwM2MXkfu3Q
|
||||
PGADMIN_LISTEN_PORT: 5050
|
||||
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION: "True"
|
||||
PGADMIN_CONFIG_CONSOLE_LOG_LEVEL: 10
|
||||
volumes:
|
||||
- ./servers.json:/pgadmin4/servers.json # servers available
|
||||
- ./pgpass:/pgpass # passwords for the connections in this file
|
||||
networks:
|
||||
- pgadmin
|
||||
ports:
|
||||
- 5050:5050
|
||||
volumes:
|
||||
servers.json:
|
||||
pgpass:
|
||||
|
||||
networks:
|
||||
pgadmin:
|
||||
2
pgadmin/pgpass
Normal file
2
pgadmin/pgpass
Normal file
@@ -0,0 +1,2 @@
|
||||
10.10.20.6:15432:postgres:postgres:R3V5rdwM2MXkfu3Q
|
||||
10.10.10.18:15432:postgres:postgres:R3V5rdwM2MXkfu3Q
|
||||
24
pgadmin/servers.json
Normal file
24
pgadmin/servers.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"Servers": {
|
||||
"1": {
|
||||
"Name": "pgres1 kakariki",
|
||||
"Group": "Group 1",
|
||||
"Port": 5432,
|
||||
"Host": "10.10.10.18",
|
||||
"SSLMode": "prefer",
|
||||
"MaintenanceDB": "postgres",
|
||||
"Username": "postgres",
|
||||
"PassFile": "/pgpass",
|
||||
},
|
||||
"2": {
|
||||
"Name": "db2b tokoeka",
|
||||
"Group": "Group 1",
|
||||
"Port": 5432,
|
||||
"Host": "10.10.20.6",
|
||||
"SSLMode": "prefer",
|
||||
"MaintenanceDB": "postgres"
|
||||
"Username": "postgres",
|
||||
"PassFile": "/pgpass",
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user