Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pgadmin container in docker-compose. #37

Merged
merged 2 commits into from
Jun 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 19 additions & 3 deletions developer/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
services:
postgres:
container_name: postgres
image: postgres:15.2
image: postgres:15.7
hostname: postgres
# Either "host" or "bridge"
network_mode: "bridge"
# Either "linux/amd64" or "linux/arm64/v8" (e.g. Mac M1 systems)
platform: linux/arm64/v8
environment:
Expand All @@ -19,4 +17,22 @@ services:
retries: 3
start_period: 3s
timeout: 10s
networks:
- pgnetwork

pgadmin:
image: dpage/pgadmin4
environment:
- [email protected]
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "5433:80"
depends_on:
- postgres
volumes:
- ./servers.json:/pgadmin4/servers.json
networks:
- pgnetwork

networks:
pgnetwork:
15 changes: 15 additions & 0 deletions developer/servers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Servers": {
"1": {
"Name": "YHS_Local",
"Group": "Servers",
"Host": "postgres",
"Port": 5432,
"MaintenanceDB": "yhs",
"Username": "yhs",
"Password": "yhs",
"SSLMode": "prefer",
"PassFile": "/pgadmin4/servers.json"
}
}
}