From 75c7e2dcf5b742af5d85bb2efe4b07e653c0cd66 Mon Sep 17 00:00:00 2001 From: Hendrik Sokolowski Date: Sun, 28 Apr 2024 01:23:42 +0200 Subject: [PATCH] docs: add rough documentation about obs-portal --- docs/obs-portal.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/obs-portal.md diff --git a/docs/obs-portal.md b/docs/obs-portal.md new file mode 100644 index 00000000..be4a2740 --- /dev/null +++ b/docs/obs-portal.md @@ -0,0 +1,25 @@ +# OpenBikeSensor Portal + +## Docker Containers +* portal +* worker +* db + + +## Run database migrations + +``` +docker exec -ti obs-portal tools/upgrade.py +``` + +## Dump database + +``` +docker exec -ti --user postgres obs-portal-db pg_dump obs +``` + +## Restore database + +``` +cat dump.sql | docker exec -ti --user postgres obs-portal-db psql obs +```