Compare commits
2 Commits
renovate/m
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3c503aa42f | |||
| 11bac13e30 |
2
abra.sh
2
abra.sh
@ -1 +1 @@
|
||||
export GHOST_ENTRYPOINT_VERSION=v1
|
||||
export GHOST_ENTRYPOINT_VERSION=v1
|
||||
|
||||
14
compose.yml
14
compose.yml
@ -1,6 +1,6 @@
|
||||
services:
|
||||
app:
|
||||
image: ghost:6.21.2-alpine
|
||||
image: ghost:6.42.0-alpine
|
||||
environment:
|
||||
# see https://ghost.org/docs/config/#configuration-options
|
||||
database__client: mysql
|
||||
@ -51,13 +51,13 @@ services:
|
||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/var/lib/ghost/content"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.2.0+6.21.2-alpine"
|
||||
- "coop-cloud.${STACK_NAME}.version=1.3.0+6.42.0-alpine"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--header=X-Forwarded-Proto: https", "--spider", "-q", "http://localhost:2368/ghost/api/admin/site"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
start_period: 15m
|
||||
|
||||
db:
|
||||
image: mysql:8.0
|
||||
@ -72,9 +72,9 @@ services:
|
||||
deploy:
|
||||
labels:
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.pre-hook=mysqldump -u root -p\"$$(cat /run/secrets/db_password)\" ghost --tab /var/lib/mysql-files/"
|
||||
- "backupbot.backup.post-hook=rm -rf /var/lib/mysql-files/*"
|
||||
- "backupbot.backup.path=/var/lib/mysql-files/"
|
||||
- 'backupbot.backup.pre-hook=mysqldump -u root -p"$$(cat /run/secrets/db_password)" --single-transaction --routines --triggers --databases ghost | gzip > /var/lib/mysql/backup.sql.gz'
|
||||
- "backupbot.backup.volumes.mysql.path=backup.sql.gz"
|
||||
- 'backupbot.restore.post-hook=gunzip -c /var/lib/mysql/backup.sql.gz | mysql -u root -p"$$(cat /run/secrets/db_password)"'
|
||||
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p\"$$(cat /run/secrets/db_password)\""]
|
||||
@ -103,4 +103,4 @@ secrets:
|
||||
configs:
|
||||
ghost_entrypoint:
|
||||
name: ${STACK_NAME}_ghost_entrypoint_${GHOST_ENTRYPOINT_VERSION}
|
||||
file: entrypoint.sh
|
||||
file: entrypoint.sh
|
||||
|
||||
Reference in New Issue
Block a user