Folder 'main' will be created in directory $basedir:
docker service create --name $serviceName \
--network $networkName \
--mount type=bind,src=/$basedir/10,dst=/var/lib/postgresql/10 \
pdbs/postgres
Place the certificates and CA certificate in /$basedir before the first start of the container/service
Certificates:
/$basedir/server.crt
/$basedir/server.key
CA:
/$basedir/root.crt
From Tag 10.x.y on, Postgres version is 10.x and image version is y. Untagged versions are Postgres 9.5 which have to be updated manually.
The update procedure is as following:
pg_dumpall -f backupfile...
--mount type=bind,src=/$basedir/9.5,dst=/var/lib/postgresql/9.5
--mount type=bind,src=/$basedir/10,dst=/var/lib/postgresql/10
...
psql < backupfileOptional:
Content type
Image
Digest
Size
106.9 MB
Last updated
about 6 years ago
docker pull pdbs/postgres