Skip to content

Commit

Permalink
automatically configure pgadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
leotsarev committed Jan 11, 2024
1 parent ac71581 commit 07c8a4b
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,30 @@ services:
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root
PGADMIN_CONFIG_SERVER_MODE: 'False'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
ports:
- "5050:80"
- "5050:80"
entrypoint: /bin/sh -c "chmod 600 /pgpass; /entrypoint.sh;"
user: root
configs:
- source: servers.json
target: /pgadmin4/servers.json
- source: pgpass
target: /pgpass

configs:
pgpass:
content: db:5432:*:kogdauser:kogdapass
servers.json:
content: |
{"Servers": {"1": {
"Group": "Servers",
"Name": "KogdaIgra Db",
"Host": "db",
"Port": 5432,
"MaintenanceDB": "kogdaigra",
"Username": "kogdauser",
"PassFile": "/pgpass",
"SSLMode": "prefer"
}}}

0 comments on commit 07c8a4b

Please sign in to comment.