- https://hub.docker.com/_/postgres
# Install
docker pull postgres
# Run
docker run \
--name db-postgres \
-e "POSTGRES_PASSWORD=Senha123" \
-e "POSTGRES_USER=michel" \
-p 5432:5432 \
-d \
postgres
# Others Parameters
# https://imasters.com.br/banco-de-dados/postgresql-docker-executando-uma-instancia-e-o-pgadmin-4-partir-de-containers
docker run \
--name db-postgres-groffe \
-e "POSTGRES_PASSWORD=Senha123" \
-p 5432:5432 \
--network=postgres-network \
-v /home/renatogroffe/Desenvolvimento/PostgreSQL:/var/lib/postgresql/data \
-d \
postgres
Deixe um comentário