added dockercompose scripts

This commit is contained in:
Thommie Rother
2023-11-23 22:25:07 +01:00
parent 32a1915a90
commit b2f40a1193
46 changed files with 151006 additions and 0 deletions

26
pgadmin/compose.yaml Normal file
View 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
View 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
View 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",
},
}
}