- To pull docker image: run
docker-compose up -d
in repo folder. - To open Hasura Web Page:
http://localhost:8080/console
-
docker exec -i petra-application_postgres_1 psql -U postgres -d postgres < backup/dump_06-06-2020_16_03_58.sql
-
Import meta settings
06-06-2020_16_03_58.json
with using your hasura settings.
Don't forget push your image before clear images
docker stop docker ps -qa
docker rm docker ps -qa
docker rmi -f docker images -qa
docker volume rm $(docker volume ls -qf dangling="true")
docker network rm docker network ls -q
- To save changes and push it:
docker tag oguzkaganeren/petra oguzkaganeren/petra:V.0.0.X
change theX
with your version. Then to push:docker push oguzkaganeren/petra:V.0.0.X
change theX
with your version. - Do not forget to get last changes from repo using
docker pull oguzkaganeren/petra:latest
-
docker tag oguzkaganeren/petra-postgres:latest oguzkaganeren/petra-postgres:latest
-
docker push oguzkaganeren/petra-postgres
docker exec -t petra-application_postgres_1 pg_dumpall -c -U postgres > backup/dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql