postgres data persistance

This commit is contained in:
chandi 2020-05-17 11:06:28 +02:00
parent 8d2d08a413
commit 03d682fb5b
3 changed files with 26 additions and 3 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
.env .env
postgres-data

View File

@ -64,6 +64,8 @@ Also don't forget to forward all necassary ports listed in http://docs.bigbluebu
## Upgrading ## Upgrading
### Upgrade BigBlueButton
```bash ```bash
cd bbb-docker cd bbb-docker
@ -78,11 +80,29 @@ docker-compose build --pull --no-cache
# recreate updated services # recreate updated services
docker-compose up -d docker-compose up -d
# Missing:
# greenlight & https image updates
``` ```
### Upgrade Greenlight
**Important:** especially with a version before 2020-05-17 create a database backup before, since the data is not persitent between container recreations.
```bash
cd bbb-docker
# create a database backup
docker exec -t docker_postgres_1 pg_dumpall -c -U postgres > /root/greenlight_`date +%d-%m-%Y"_"%H_%M_%S`.sql
# pull repo changes
git pull
# pull image updates
docker-compose -f docker-compose.greenlight.yml pull
# recreate & restart services if necessary
docker-compose -f docker-compose.greenlight.yml up -d
```
### Upgrade HTTPS Proxy
[to be written]
## Special thanks to ## Special thanks to
- @dkrenn, whos dockerized version (bigbluebutton#8858)(https://github.com/bigbluebutton/bigbluebutton/pull/8858) helped me a lot in understand and some configs. - @dkrenn, whos dockerized version (bigbluebutton#8858)(https://github.com/bigbluebutton/bigbluebutton/pull/8858) helped me a lot in understand and some configs.

View File

@ -22,3 +22,5 @@ services:
POSTGRES_DB: greenlight POSTGRES_DB: greenlight
POSTGRES_USER: postgres POSTGRES_USER: postgres
POSTGRES_PASSWORD: password POSTGRES_PASSWORD: password
volumes:
- ./postgres-data:/var/lib/postgresql/data