wip: currently rewriting the project as a full stack application tangled.org/kacaii.dev/sigo
gleam

:recycle: store the postgres image in a variable

+11 -4
+11 -4
.justfiles/postgres.just
··· 1 1 set quiet := true 2 2 3 - psql := require("psql") 4 3 docker := require("docker") 4 + psql := require("psql") 5 + 6 + # 7 + 5 8 database_url := env("DATABASE_URL") 9 + postgres_db := env("POSTGRES_DB") 10 + postgres_password := env("POSTGRES_PASSWORD") 6 11 postgres_user := env("POSTGRES_USER") 7 - postgres_password := env("POSTGRES_PASSWORD") 8 - postgres_db := env("POSTGRES_DB") 12 + 13 + # 14 + 15 + image := "postgres:18-alpine" 9 16 port := "5432" 10 17 11 18 # List available recipes ··· 19 26 -e POSTGRES_PASSWORD={{ postgres_password }} \ 20 27 -e POSTGRES_DB={{ postgres_db }} \ 21 28 -p {{ port }}:5432 \ 22 - -d postgres:18-alpine 29 + -d {{ image }} 23 30 24 31 #  Rebuild the database empty 25 32 [no-cd]