Method: SOULs::Docker#psql

Defined in:
lib/souls/cli/docker/index.rb

#psqlObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/souls/cli/docker/index.rb', line 4

def psql
  system(
    "docker run --rm -d \
      --name souls-psql \
      -p 5433:5432 \
      -v postgres-tmp:/var/lib/postgresql/data \
      -e POSTGRES_USER=postgres \
      -e POSTGRES_PASSWORD=postgres \
      -e POSTGRES_DB=souls_test \
      postgres:13-alpine"
  )
  system("docker ps")
end