Browse Source

Versão funcionando

pull/284/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Edward Ribeiro
parent
commit
439de79814
  1. 2
      docker-compose.yml
  2. 2
      scripts_docker/restore-db.sh

2
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"

2
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

Loading…
Cancel
Save