소스 검색

Do not leave containers behind after matrix-postgres-cli usage

pull/6/head
Slavi Pantaleev 9 년 전
부모
커밋
ac59192696
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. +7
    -1
      roles/matrix-server/templates/usr-local-bin/matrix-postgres-cli.j2

+ 7
- 1
roles/matrix-server/templates/usr-local-bin/matrix-postgres-cli.j2 파일 보기

@@ -1,3 +1,9 @@
#!/bin/bash

docker run --env-file={{ matrix_environment_variables_data_path }}/env-postgres-pgsql-docker -it --link=matrix-postgres:postgres postgres:9.6.3-alpine psql -h postgres
docker run \
-it \
--rm \
--env-file={{ matrix_environment_variables_data_path }}/env-postgres-pgsql-docker \
--link=matrix-postgres:postgres \
{{ docker_postgres_image }} \
psql -h postgres

불러오는 중...
취소
저장