File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 11FROM postgres:16.6
2+
3+ ENV POSTGRES_USER=admin
4+ ENV POSTGRES_PASSWORD=secret
5+ ENV POSTGRES_DB=mydb
6+
27CMD ["postgres" ]
Original file line number Diff line number Diff line change 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```
You can’t perform that action at this time.
0 commit comments