tangled
alpha
login
or
join now
kacaii.dev
/
senac-brigade-server
0
fork
atom
wip: currently rewriting the project as a full stack application
tangled.org/kacaii.dev/sigo
gleam
0
fork
atom
overview
issues
1
pulls
pipelines
:recycle: store the postgres image in a variable
kacaii.dev
1 month ago
16b7497b
7e0ede8d
+11
-4
1 changed file
expand all
collapse all
unified
split
.justfiles
postgres.just
+11
-4
.justfiles/postgres.just
···
1
1
set quiet := true
2
2
3
3
-
psql := require("psql")
4
3
docker := require("docker")
4
4
+
psql := require("psql")
5
5
+
6
6
+
#
7
7
+
5
8
database_url := env("DATABASE_URL")
9
9
+
postgres_db := env("POSTGRES_DB")
10
10
+
postgres_password := env("POSTGRES_PASSWORD")
6
11
postgres_user := env("POSTGRES_USER")
7
7
-
postgres_password := env("POSTGRES_PASSWORD")
8
8
-
postgres_db := env("POSTGRES_DB")
12
12
+
13
13
+
#
14
14
+
15
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
22
-
-d postgres:18-alpine
29
29
+
-d {{ image }}
23
30
24
31
# Rebuild the database empty
25
32
[no-cd]