본문 바로가기

Develop/Etc

[Postgres] Setup via docker

docker run -it --rm --name postgres \

  -p 5432:5432 \

  -e POSTGRES_USER={{USER_ID}} \

  -e POSTGRES_PASSWORD='{{PASSWORD}}' \

  -v {{HOST_VOLUME_PATH}}:/var/lib/postgresql/data \

  -d postgres