From 439de79814effbc6336d642e1c016406e2c97ef8 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Thu, 31 Mar 2016 09:10:24 -0300 Subject: [PATCH] =?UTF-8?q?Vers=C3=A3o=20funcionando?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 2 -- scripts_docker/restore-db.sh | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index fcf321adf..9c79a379a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,8 +4,6 @@ db: POSTGRES_PASSWORD: sapl POSTGRES_USER: sapl POSTGRES_DB: sapl - ports: - - "5432" web: build: . command: bash -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000" diff --git a/scripts_docker/restore-db.sh b/scripts_docker/restore-db.sh index 10eea3400..56186c05c 100755 --- a/scripts_docker/restore-db.sh +++ b/scripts_docker/restore-db.sh @@ -1,2 +1,2 @@ #!/bin/bash -pg_restore --disable-triggers --data-only sapl_30-03-16.tar | docker exec -i sapl_localhost_1 psql -U sapl +pg_restore --disable-triggers --data-only sapl_30-03-16.tar | docker exec -i sapl_db_1 psql -U postgres