https://github.com/admin404nextfloor/infrastructure-setup-linux-postgresql-pgadmin
Infrastructure Setup (Linux, PostgreSQL, pgAdmin)
https://github.com/admin404nextfloor/infrastructure-setup-linux-postgresql-pgadmin
docker docker-compose linux linux-shell sql yaml
Last synced: 2 months ago
JSON representation
Infrastructure Setup (Linux, PostgreSQL, pgAdmin)
- Host: GitHub
- URL: https://github.com/admin404nextfloor/infrastructure-setup-linux-postgresql-pgadmin
- Owner: admin404nextfloor
- Created: 2025-02-18T14:31:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-26T06:34:36.000Z (over 1 year ago)
- Last Synced: 2025-02-26T07:29:28.309Z (over 1 year ago)
- Topics: docker, docker-compose, linux, linux-shell, sql, yaml
- Language: Shell
- Homepage:
- Size: 987 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Infrastructure Setup (Linux, PostgreSQL, pgAdmin)
[](https://ubuntu.com/)
[](https://www.docker.com/)
[](https://docs.docker.com/compose/)
[](https://www.postgresql.org/)
[](https://www.pgadmin.org/)
[](https://www.gnu.org/software/bash/)
[](https://www.openssh.com/)
## Overview
This project demonstrates the deployment of PostgreSQL and pgAdmin on a VPS/VDS using Docker Compose. The goal was to automate the installation and configuration process, ensuring a streamlined and efficient setup. The work was carried out according to the planned schedule and successfully completed.
## Features
- **Automated PostgreSQL & pgAdmin installation** via Docker Compose.
- **Infrastructure setup and configuration** for database management.
- **Secure and customizable** deployment.
- **Designed for Ubuntu 22.04**
## Installation Guide
### Step 1: Connect to Your VPS
```sh
ssh root@your_server_ip
```
### Step 2: Run the Setup Script
```sh
wget -O ./postgres_setup_ubuntu.sh https://raw.githubusercontent.com/admin404nextfloor/SQL/master/postgres_setup_ubuntu.sh \
&& chmod +x postgres_setup_ubuntu.sh \
&& ./postgres_setup_ubuntu.sh
```
This script will:
- Update system packages
- Install Docker & Docker Compose
- Copy `docker-compose.yml`
- Set up PostgreSQL and pgAdmin
- Launch the containers
### Step 3: Access Your Services
- **PgAdmin**: `http://your_server_ip:5050`
- **PostgreSQL**: `your_server_ip:5432`
## Default Credentials
| Service | Username | Password |
|----------|----------|------------|
| PostgreSQL | postgres | changeme |
| PgAdmin | pgadmin4@pgadmin.org | admin |
## How to Connect to PostgreSQL in PgAdmin
1. Open PgAdmin (`http://your_server_ip:5050`)
2. Create a new server with:
- **Host**: `your_server_ip`
- **Port**: `5432`
- **Username**: `postgres`
- **Password**: `changeme`
## Release Notes
### v1.0 (February 2025)
- **Initial Release** 🎉
- Fully automated PostgreSQL and pgAdmin setup via Docker Compose
- Tested on Ubuntu 22.04
- Simplified user experience with preconfigured credentials