Docker: create db villasdb

This commit is contained in:
Sonja Happ 2019-04-24 14:48:09 +02:00
parent 8e872feb6a
commit 6fa646b9dd

View file

@ -35,6 +35,7 @@ USER postgres
RUN /etc/init.d/postgresql start &&\ RUN /etc/init.d/postgresql start &&\
psql --command "CREATE USER villasuser WITH SUPERUSER PASSWORD 'villasuser';" &&\ psql --command "CREATE USER villasuser WITH SUPERUSER PASSWORD 'villasuser';" &&\
createdb -O villasuser testvillasdb createdb -O villasuser testvillasdb
createdb -O villasuser villasdb
# Add ``listen_addresses`` to ``/etc/postgresql/11/main/postgresql.conf`` # Add ``listen_addresses`` to ``/etc/postgresql/11/main/postgresql.conf``
RUN echo "listen_addresses='*'" >> /etc/postgresql/11/main/postgresql.conf RUN echo "listen_addresses='*'" >> /etc/postgresql/11/main/postgresql.conf