this repo has no description

remember how to run a postgresql docker container

kacaii.dev 4e359e5f

+26
docker.md

This is a binary file and will not be displayed.

postgresql.md

This is a binary file and will not be displayed.

+26
run-postgresql-container.md
··· 1 + [[docker]] 2 + [[postgresql]] 3 + 4 + ```fish 5 + docker run --rm --name postgres \ 6 + -e POSTGRES_USER=$POSTGRES_USER \ 7 + -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD \ 8 + -e POSTGRES_DB=$POSTGRES_DB \ 9 + -p 5432:5432 \ 10 + -d postgres:latest 11 + ``` 12 + 13 + ## Optional flags 14 + 15 + - `-d` Run the container in _detached_ mode 16 + - `-e` Is used to pass environment variables. 17 + - `-p` Maps the ports. 18 + - `--name` Sets the name of the running container. 19 + - `--rm` Deletes the container after it stops. 20 + 21 + ## Remember to include a password 22 + 23 + > [!ERROR] 24 + > Database is uninitialized and superuser password is not specified. 25 + > You must specify POSTGRES_PASSWORD to a non-empty value for the 26 + > superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
source.md

This is a binary file and will not be displayed.