Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
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:14.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