Skip to content

Commit 2d56a80

Browse files
committed
feat: execution docs & pre-defined vars
1 parent ebafd35 commit 2d56a80

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
FROM postgres:16.6
2+
3+
ENV POSTGRES_USER=admin
4+
ENV POSTGRES_PASSWORD=secret
5+
ENV POSTGRES_DB=mydb
6+
27
CMD ["postgres"]

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,35 @@
11
### postgres image
22

3-
### Start (custom)
43

4+
### Start default
5+
6+
```
7+
podman run \
8+
--name postgres \
9+
-p 5671:5432 \
10+
ghcr.io/multi-repo/postgres/pg:main
511
```
12+
` postgres://admin:secret@localhost:5671/mydb `
613

14+
### Start (custom)
15+
```
16+
podman run \
17+
--name my_postgres \
18+
-e POSTGRES_USER=admin \
19+
-e POSTGRES_PASSWORD=secret \
20+
-e POSTGRES_DB=mydb \
21+
-p 5671:5432 \
22+
ghcr.io/multi-repo/postgres/pg:main
723
```
824

925
### Start (powershell)
1026

1127
```
12-
28+
podman run `
29+
--name my_postgres `
30+
-e POSTGRES_USER=admin `
31+
-e POSTGRES_PASSWORD=secret `
32+
-e POSTGRES_DB=mydb `
33+
-p 5671:5432 `
34+
ghcr.io/multi-repo/postgres/pg:main
1335
```

0 commit comments

Comments
 (0)