diff --git a/docker-compose.yml b/docker-compose.yml index 9c79a379a..f2c0efaa8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,11 @@ -db: +localhost: image: postgres environment: POSTGRES_PASSWORD: sapl POSTGRES_USER: sapl POSTGRES_DB: sapl + ports: + - "5532:5432" web: build: . command: bash -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000" @@ -12,4 +14,4 @@ web: ports: - "8000:8000" links: - - db + - localhost diff --git a/sapl_30-03-16.tar b/sapl_30-03-16.tar new file mode 100644 index 000000000..789e73d16 Binary files /dev/null and b/sapl_30-03-16.tar differ diff --git a/scripts_docker/remove-db.sh b/scripts_docker/remove-db.sh index 547d3694f..c911bc2a7 100755 --- a/scripts_docker/remove-db.sh +++ b/scripts_docker/remove-db.sh @@ -1,4 +1,4 @@ #!/bin/bash -sudo docker stop sapl_db_1 -sudo docker rm sapl_db_1 +sudo docker stop sapl_localhost_1 +sudo docker rm sapl_localhost_1 sudo docker rmi -f postgres diff --git a/scripts_docker/restore-db.sh b/scripts_docker/restore-db.sh index 56186c05c..8a40a2296 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_db_1 psql -U postgres +sudo pg_restore --disable-triggers --data-only sapl_30-03-16.tar | docker exec -i sapl_localhost_1 psql -U sapl