Initialize a Postgres database using provided scripts
mainIf you are using a Debian-based system and want to use the provided Postgres setup via Docker, follow these steps:
- Stop the local PostgreSQL service if running:
sudo service postgresql stop. - Start the Postgres container:
docker-compose -f docker/docker-compose-postgres.yml up -d. - Install Python dependencies:
pip install -r requirements.txt. - Run the creation script:
./scripts/create_postgres.sh.
# Required if you're on Debian based systems
sudo service postgresql stop
docker-compose -f docker/docker-compose-postgres.yml up -d
pip install -r requirements.txt
./scripts/create_postgres.sh