mirror of
				https://github.com/spantaleev/matrix-docker-ansible-deploy.git
				synced 2025-11-04 00:58:56 +01:00 
			
		
		
		
	Do not leave containers behind after matrix-postgres-cli usage
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user