Compare commits

...

7 Commits

Author SHA1 Message Date
3wc b8e2929bf2 chore: publish 2.0.0+v4.2.10-hometown-1.1.1 release
continuous-integration/drone/push Build is passing Details
2024-07-31 12:44:37 -04:00
decentral1se 18a956d084 Merge pull request 'Database backups' (#21) from amras/hometown:backups into main
continuous-integration/drone/push Build is passing Details
Reviewed-on: #21
Reviewed-by: decentral1se <decentral1se@noreply.git.coopcloud.tech>
2024-07-15 09:22:46 +00:00
Sarma 7525e5826c Create database backups
When running `abra app backup`/`abra app restore`, use `pg_dump -Fc`.

This is the backup strategy recommended by hometown, just abra-ified.
(e.g. Update Steps here: https://github.com/hometown-fork/hometown/releases/tag/v4.2.10%2Bhometown-1.1.1)
2024-07-14 13:53:45 +00:00
decentral1se 2ca92dd55f
fix: drop golang templatin'
continuous-integration/drone/push Build is passing Details
2024-03-28 22:40:46 +01:00
3wc 080fcd7a2d chore: publish 1.1.9+v4.0.15-hometown-1.1.1 release
continuous-integration/drone/push Build is passing Details
2024-03-27 01:30:10 -03:00
3wc 556d73cce8 Further startup fix
continuous-integration/drone/push Build is passing Details
2024-03-27 01:26:42 -03:00
3wc f6c2527182 Run migrations during app startup
continuous-integration/drone/push Build is passing Details
2024-03-27 00:55:00 -03:00
2 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,6 @@
TYPE=hometown
DOMAIN={{ .Domain }}
DOMAIN=hometown.example.com
# Enables WEB_DOMAIN if set (FOR FUTURE USE)
# USER_DOMAIN=

View File

@ -3,8 +3,8 @@ version: "3.8"
services:
app:
image: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:v4.0.15-hometown-1.1.1
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rails s -p 3000"
image: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:v4.2.10-hometown-1.1.1
command: bash -c "rm -f /mastodon/tmp/pids/server.pid; bundle exec rake db:migrate; bundle exec rails s -p 3000"
networks: &bothNetworks
- proxy
- internal_network
@ -19,7 +19,7 @@ services:
- "traefik.http.routers.${STACK_NAME}_web.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.${STACK_NAME}_web.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}_web.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=1.1.8+v4.0.15-hometown-1.1.1"
- "coop-cloud.${STACK_NAME}.version=2.0.0+v4.2.10-hometown-1.1.1"
configs: &configs
- source: entrypoint_sh
target: /usr/local/bin/entrypoint.sh
@ -143,7 +143,7 @@ services:
- WEB_DOMAIN
streaming:
image: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:v4.0.15-hometown-1.1.1
image: git.coopcloud.tech/coop-cloud-chaos-patchs/hometown:v4.2.10-hometown-1.1.1
command: node ./streaming
configs: *configs
entrypoint: *entrypoint
@ -189,9 +189,17 @@ services:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
- POSTGRES_USER=${DB_USER}
deploy:
labels:
- "backupbot.backup=true"
- "backupbot.backup.pre-hook=sh -c \"mkdir -p /var/backup/hometown; /usr/local/bin/pg_dump -Fc -U ${DB_USER} ${DB_NAME} > /var/backup/hometown/backupbot.dump\""
- "backupbot.backup.path=/var/backup/hometown"
- "backupbot.backup.post-hook=rm -f /var/backup/hometown/backupbot.dump"
- "backupbot.restore.post-hook=sh -c \"/usr/local/bin/pg_restore -U ${DB_USER} -d ${DB_NAME} -1 /var/backup/hometown/backupbot.dump\""
redis:
image: redis:7.2-alpine
image: redis:7.4-alpine
networks: *internalNetwork
healthcheck:
test: ["CMD", "redis-cli", "ping"]