]>
Git — Sourcephile - gargantext.git/blob - devops/docker/docker-postgres
5 docker stop dbgarg
|| :
6 docker
rm --volumes dbgarg
|| :
7 export PGPASSWORD
="$(grep DB_PASS gargantext.ini | \awk '{print $3}')"
8 docker run
--name dbgarg
-e POSTGRES_USER
=gargantua
-e POSTGRES_DB
=gargandbV5
-e POSTGRES_PASSWORD
=${PGPASSWORD} -d postgres
10 docker run
-e PGPASSWORD
-i --rm --link dbgarg
:postgres postgres psql
-h postgres
-U gargantua
-d gargandbV5
< devops
/postgres
/schema.sql
11 #docker run -e PGPASSWORD -i --rm --link dbgarg:postgres postgres psql -h postgres -U gargantua -d gargandbV5 < gargantext.dump
12 #docker run -e PGPASSWORD -i --rm --link dbgarg:postgres postgres dropdb -h postgres -U gargantua gargandbV5