2019-06-25 15:56:35 +02:00
|
|
|
IMAGE postgres 11.3.0-190620
|
|
|
|
META title PostgreSQL
|
|
|
|
META desc-cs Relační databázový systém s podporou pro geografické objekty
|
|
|
|
META desc-en Relational database management system with support for geographic objects
|
|
|
|
META type service
|
|
|
|
META license GPL
|
|
|
|
|
|
|
|
LAYER alpine3.9 3.9.4-190620
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-12 16:08:10 +02:00
|
|
|
RUN EOF
|
2018-09-05 17:41:38 +02:00
|
|
|
# Modify OS user (which will be picked up later by apk add)
|
|
|
|
sed -i 's/postgres:x:70:70/postgres:x:5432:5432/' /etc/passwd
|
|
|
|
sed -i 's/postgres:x:70/postgres:x:5432/' /etc/group
|
|
|
|
|
|
|
|
# Install PostgreSQL + PostGIS
|
2019-06-05 09:33:28 +02:00
|
|
|
apk --no-cache add postgresql postgresql-contrib postgis@vm
|
2018-09-05 17:41:38 +02:00
|
|
|
|
|
|
|
# Create socket directory
|
|
|
|
mkdir /run/postgresql
|
|
|
|
chown postgres:postgres /run/postgresql
|
2018-09-12 16:08:10 +02:00
|
|
|
EOF
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-14 18:13:11 +02:00
|
|
|
MOUNT DIR /srv/postgres/data var/lib/postgresql
|
2018-09-05 17:41:38 +02:00
|
|
|
|
2018-09-06 14:27:40 +02:00
|
|
|
USER 5432 5432
|
2018-09-13 16:21:16 +02:00
|
|
|
CMD postgres -D /var/lib/postgresql
|