matrix-docker-ansible-deploy/roles/matrix-server/templates/usr-local-bin/matrix-postgres-cli.j2

11 lines
331 B
Plaintext
Raw Normal View History

2017-07-31 22:07:30 +02:00
#!/bin/bash
docker run \
-it \
--rm \
--env-file={{ matrix_environment_variables_data_path }}/env-postgres-pgsql-docker \
{% if not matrix_postgres_use_external %}
--link=matrix-postgres:{{ matrix_postgres_connection_hostname }} \
{% endif %}
{{ docker_postgres_image }} \
psql -h {{ matrix_postgres_connection_hostname }}