Create postgres/postgres.env
using postgres/postgres.env.sample
as template
Optional: Create pgadmin/pgadmin.env
using pgadmin/pgadmin.env.sample
as template
Create server/config.yml
using server/config.yml.sample
as a template. Use the values defined in postgres/postgres.env
docker compose up -d postgres
migrate -database "postgres://user:password@localhost:5432/database?sslmode=disable" -path db/migrations up
-
SQL Library
-
PostgreSQL Driver
-
golang-migrate Library