This repository contains the Docker Compose setup to quickly deploy a PostgreSQL database along with pgAdmin for database management.
- Docker
- Docker Compose
- Download the docker-compose.yml file to the local folder
- Create a postgres folder and copy the file - docker-compose.yml to postgres folder
- Both services are connected to the
fnb
network with the following subnet:192.168.1.0/24
.
- docker compose up -d
- Access pgAdmin at http://localhost:8120 with the email
admin@admin.com
and passwordadmin
.
- PostgreSQL data is persisted in the
./postgres_data
directory on the host machine. This will be the sub folder in your postgres folder. - pgAdmin data is persisted in the
./pgadmin_data
directory on the host machine. This will be the sub folder in your postgres folder.
- Ensure the IP addresses
192.168.1.29
and192.168.1.30
are available on your network. - Modify the environment variables in the
docker-compose.yml
file as needed for your setup.
- docker compose down