Development environment

Postgres

Setting up a local database

services:
  postgres:
    image: "postgres:15.2-bullseye"
    environment:
      POSTGRES_USER: "sqigl"
      POSTGRES_PASSWORD: "password"
      POSTGRES_DB: "sqigl"
    ports:
        - "5432:5432"
localhost:5432:sqigl:sqigl:password

Connecting to a production database

[project]
version = "0.1.0"
title = "my_project"

[database]
db = "postgres"
database = "my_application"
hostname = "db.example.com"

SQLite