docs: add rough documentation about obs-portal
All checks were successful
Flake checks / Check (pull_request) Successful in 6m2s
All checks were successful
Flake checks / Check (pull_request) Successful in 6m2s
This commit is contained in:
parent
10c86c6b20
commit
75c7e2dcf5
25
docs/obs-portal.md
Normal file
25
docs/obs-portal.md
Normal file
|
@ -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
|
||||||
|
```
|
Loading…
Reference in a new issue