Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 17 lines (12 sloc) 542 Bytes
#!/bin/bash
docker run -p 5432:5432 -e POSTGRES_DB=meuse -e POSTGRES_USER=meuse \
-e POSTGRES_PASSWORD=meuse \
postgres:11.4
# psql -h localhost -d meuse -p 5432 -U meuse
# to test ssl:
# -v /home/mathieu/Documents/meuse/ssl/server.cer:/var/lib/postgresql/server.crt \
# -v /home/mathieu/Documents/meuse/ssl/server.key:/var/lib/postgresql/server.key:Z \
# postgres:11.4 \
# -c ssl=on \
# -c ssl_cert_file=/var/lib/postgresql/server.crt \
# -c ssl_key_file=/var/lib/postgresql/server.key
You can’t perform that action at this time.