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