The main documentation repository for the 🍭☁️ https://lollipopcloud.solutions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

postgres.md 957B

Postgresql

A database for all those awesome services you’ll be running.

Install / Update / Run Script

Setup a generic script that’ll auto update, build a container and launch it. You should only run this script at first launch and/or when you’re looking for updates.

If you are running your operating system from a Micro SD Card, You may wish to store your data directory on a USB drive to reduce the number of writes to the SD card. If you do so, don’t forget to change the volume mount path when starting the docker container.


# Create directory for postgres to store data. 
# Alternatively, create a directory on a USB drive
mkdir -p /var/postgres/data

wget -O postgres.sh https://git.lollipopcloud.solutions/lollipop-docker/misc/raw/branch/master/run_postgres.sh
chmod a+x /scratch/docker/postgres.sh

Run Postgres

Simply execute /scratch/docker/postgres.sh to update/run Postgres.