Compare commits
26 Commits
shorter-secret
...
v2.2.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
c39f8849de
|
|||
| 679bcc4ce8 | |||
| 563641ac48 | |||
|
aaa0711fa4
|
|||
| 818ec9bc13 | |||
|
af3d655c8f
|
|||
| 1936226bf5 | |||
| 0865766102 | |||
| 475484928f | |||
| 3158926e7b | |||
| 8ae0634c82 | |||
| ca1e0ec1c3 | |||
| 14b65c2ecd | |||
| c5994bd7e4 | |||
| 136ad45cfb | |||
| 26e98e915d | |||
| aa6b8472f5 | |||
| f19c498001 | |||
| db18e08971 | |||
| e85291cdb6 | |||
| e61e4d9e13 | |||
| 43c7fb2130 | |||
| 48f7153a9b | |||
| d6f980ef48 | |||
| a8ae828568 | |||
| 0b930dd81d |
@@ -12,6 +12,11 @@ COMPOSE_FILE="compose.yml"
|
||||
|
||||
LETS_ENCRYPT_ENV=production
|
||||
|
||||
## For low-resource machines (<2GB ram)
|
||||
# BASEROW_AMOUNT_OF_GUNICORN_WORKERS=1
|
||||
# BASEROW_AMOUNT_OF_WORKERS=1
|
||||
# BASEROW_RUN_MINIMAL=yes
|
||||
|
||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.email.yml"
|
||||
# FROM_EMAIL="No Reply <noreply@example.com>"
|
||||
# EMAIL_SMTP_USE_TLS=true
|
||||
|
||||
@@ -21,5 +21,11 @@
|
||||
* `abra app config <app-name>`
|
||||
* `abra app deploy <app-name>`
|
||||
|
||||
## Resources
|
||||
|
||||
* Baserow requires over 2GB RAM to run on Co-op Cloud with default settings
|
||||
* For environments with 2GB or less RAM, run `abra app config <app-name>` and uncomment the `For low-resource machines` config block
|
||||
* More info: https://hub.docker.com/r/baserow/baserow/#scaling-options
|
||||
|
||||
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
if [ "$1" == "pre-backup" ]; then
|
||||
# Remove any existing db dump and then create a new one
|
||||
rm -rf $DATA_DIR/postgres/postgres-backup
|
||||
source /baserow/data/.pgpass
|
||||
PGPASSWORD=$DATABASE_PASSWORD pg_dump -j 8 -h localhost -U baserow baserow --format=directory -f $DATA_DIR/postgres/postgres-backup
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$1" == "post-backup" ]; then
|
||||
rm -rf $DATA_DIR/postgres/postgres-backup
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$1" == "pre-restore" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ "$1" == "post-restore" ]; then
|
||||
source /baserow/data/.pgpass
|
||||
PGPASSWORD=$DATABASE_PASSWORD pg_restore -j 8 -h localhost -U baserow -d baserow -c $DATA_DIR/postgres/postgres-backup
|
||||
exit
|
||||
fi
|
||||
+16
-3
@@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: baserow/baserow:1.31.1
|
||||
image: baserow/baserow:2.3.0
|
||||
networks:
|
||||
- proxy
|
||||
environment:
|
||||
@@ -28,20 +28,33 @@ services:
|
||||
#- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.0.0+1.31.1"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/baserow/data"
|
||||
- "backupbot.backup.pre-hook=/backup.sh pre-backup"
|
||||
- "backupbot.backup.post-hook=/backup.sh post-backup"
|
||||
- "backupbot.restore.post-hook=/backup.sh post-restore"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.2.0+2.3.0"
|
||||
healthcheck:
|
||||
test: ["CMD", "./baserow.sh", "backend-cmd", "backend-healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
|
||||
volumes:
|
||||
- baserow_data:/baserow/data
|
||||
configs:
|
||||
- source: backup-postgres
|
||||
target: /backup.sh
|
||||
mode: 0777
|
||||
|
||||
volumes:
|
||||
baserow_data:
|
||||
|
||||
configs:
|
||||
backup-postgres:
|
||||
name: backup-postgres_${PG_BACKUP_CONFIG_VERSION}
|
||||
file: ./backup-postgres.sh
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
|
||||
@@ -4,3 +4,4 @@ EXISTING DEPLOYMENTS MUST COPY THIS SECRET TO THE NEW LOCATION:
|
||||
docker exec <your_baserow_container_name> cat /run/secrets/baserow_jwt_signing_key
|
||||
# Create the new secret
|
||||
abra app secret insert <your_baserow_domain> jwt_key v1 <value returned by previous command>
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Backup/restore of the postgres database backend will now use pg_dump and pg_restore
|
||||
@@ -0,0 +1,3 @@
|
||||
= 1 Breaking Change =
|
||||
|
||||
[Builder] Data source now return content with human property names instead of technical ones #4135
|
||||
@@ -0,0 +1,3 @@
|
||||
See release notes here ->
|
||||
|
||||
https://baserow.io/blog/baserow-2-2-release-notes
|
||||
Reference in New Issue
Block a user