Compare commits
12 Commits
1.1.1+6-al
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 18d7310448 | |||
| 2b99b04d31 | |||
| d88f580188 | |||
| d42d0f7c7c | |||
| 3c503aa42f | |||
| 11bac13e30 | |||
| ff03db348f | |||
| a6f646a2c8 | |||
| 858284e1fe | |||
| e6f9ecba68 | |||
| c3d3eeef56 | |||
| 1f1add13ee |
17
.env.sample
17
.env.sample
@ -2,7 +2,6 @@
|
|||||||
#SECRET_SMTP_PASSWORD_VERSION=v1
|
#SECRET_SMTP_PASSWORD_VERSION=v1
|
||||||
|
|
||||||
TYPE=ghost
|
TYPE=ghost
|
||||||
#IMAGE_VERSION=6.3.1
|
|
||||||
|
|
||||||
DOMAIN=ghost.example.com
|
DOMAIN=ghost.example.com
|
||||||
|
|
||||||
@ -15,18 +14,24 @@ SECRET_DB_PASSWORD_VERSION=v1
|
|||||||
SECRET_SMTP_PASSWORD_VERSION=v1
|
SECRET_SMTP_PASSWORD_VERSION=v1
|
||||||
|
|
||||||
## Mail settings (mandatory)
|
## Mail settings (mandatory)
|
||||||
#MAIL_TRANSPORT=smtp
|
MAIL_TRANSPORT=smtp
|
||||||
#MAIL_FROM=admin@example.com
|
MAIL_FROM=admin@example.com
|
||||||
#MAIL_OPTIONS_HOST=mail.example.com
|
MAIL_OPTIONS_HOST=mail.example.com
|
||||||
#MAIL_OPTIONS_PORT=587
|
MAIL_OPTIONS_PORT=587
|
||||||
|
MAIL_OPTIONS_AUTH_USER=smtpuser@example.com
|
||||||
#MAIL_OPTIONS_SECURE=false
|
#MAIL_OPTIONS_SECURE=false
|
||||||
#MAIL_OPTIONS_AUTH_USER=smtpuser@example.com
|
|
||||||
|
|
||||||
## Advanced options
|
## Advanced options
|
||||||
# see here: https://docs.ghost.org/config#number-of-connections
|
# see here: https://docs.ghost.org/config#number-of-connections
|
||||||
#DATABASE_POOL_MIN=2
|
#DATABASE_POOL_MIN=2
|
||||||
#DATABASE_POOL_MAX=15
|
#DATABASE_POOL_MAX=15
|
||||||
|
|
||||||
|
COMPOSE_FILE="compose.yml"
|
||||||
|
|
||||||
## Matrix-Synapse-Redirection
|
## Matrix-Synapse-Redirection
|
||||||
# COMPOSE_FILE="$COMPOSE_FILE:compose.matrix.yml"
|
# COMPOSE_FILE="$COMPOSE_FILE:compose.matrix.yml"
|
||||||
# MATRIX_DOMAIN=matrix-synapse.example.com
|
# MATRIX_DOMAIN=matrix-synapse.example.com
|
||||||
|
|
||||||
|
## Custom Image Version
|
||||||
|
# COMPOSE_FILE="$COMPOSE_FILE:compose.customversion.yml"
|
||||||
|
# IMAGE_VERSION=6.3.1
|
||||||
2
abra.sh
2
abra.sh
@ -1 +1 @@
|
|||||||
export GHOST_ENTRYPOINT_VERSION=v1
|
export GHOST_ENTRYPOINT_VERSION=v1
|
||||||
|
|||||||
3
compose.customversion.yml
Normal file
3
compose.customversion.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
services:
|
||||||
|
app:
|
||||||
|
image: ghost:${IMAGE_VERSION}-alpine
|
||||||
16
compose.yml
16
compose.yml
@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
image: ghost:${IMAGE_VERSION:-6}-alpine
|
image: ghost:6.45.0-alpine
|
||||||
environment:
|
environment:
|
||||||
# see https://ghost.org/docs/config/#configuration-options
|
# see https://ghost.org/docs/config/#configuration-options
|
||||||
database__client: mysql
|
database__client: mysql
|
||||||
@ -51,16 +51,16 @@ services:
|
|||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.redirectscheme.permanent=true"
|
||||||
- "backupbot.backup=true"
|
- "backupbot.backup=true"
|
||||||
- "backupbot.backup.path=/var/lib/ghost/content"
|
- "backupbot.backup.path=/var/lib/ghost/content"
|
||||||
- "coop-cloud.${STACK_NAME}.version=1.1.1+6-alpine"
|
- "coop-cloud.${STACK_NAME}.version=1.4.0+6.45.0-alpine"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--header=X-Forwarded-Proto: https", "--spider", "-q", "http://localhost:2368/ghost/api/admin/site"]
|
test: ["CMD", "wget", "--header=X-Forwarded-Proto: https", "--spider", "-q", "http://localhost:2368/ghost/api/admin/site"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 10
|
retries: 10
|
||||||
start_period: 1m
|
start_period: 15m
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mysql:8.0
|
image: mysql:8.4
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
environment:
|
environment:
|
||||||
@ -72,9 +72,9 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
labels:
|
labels:
|
||||||
- "backupbot.backup=true"
|
- "backupbot.backup=true"
|
||||||
- "backupbot.backup.pre-hook=mysqldump -u root -p\"$$(cat /run/secrets/db_password)\" ghost --tab /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.post-hook=rm -rf /var/lib/mysql-files/*"
|
- "backupbot.backup.volumes.mysql.path=backup.sql.gz"
|
||||||
- "backupbot.backup.path=/var/lib/mysql-files/"
|
- 'backupbot.restore.post-hook=gunzip -c /var/lib/mysql/backup.sql.gz | mysql -u root -p"$$(cat /run/secrets/db_password)"'
|
||||||
|
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p\"$$(cat /run/secrets/db_password)\""]
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p\"$$(cat /run/secrets/db_password)\""]
|
||||||
@ -103,4 +103,4 @@ secrets:
|
|||||||
configs:
|
configs:
|
||||||
ghost_entrypoint:
|
ghost_entrypoint:
|
||||||
name: ${STACK_NAME}_ghost_entrypoint_${GHOST_ENTRYPOINT_VERSION}
|
name: ${STACK_NAME}_ghost_entrypoint_${GHOST_ENTRYPOINT_VERSION}
|
||||||
file: entrypoint.sh
|
file: entrypoint.sh
|
||||||
|
|||||||
1
release/1.1.1+6-alpine
Normal file
1
release/1.1.1+6-alpine
Normal file
@ -0,0 +1 @@
|
|||||||
|
set mysql-pooling default to 0, added option to set it via env
|
||||||
1
release/1.2.0+6.21.2-alpine
Normal file
1
release/1.2.0+6.21.2-alpine
Normal file
@ -0,0 +1 @@
|
|||||||
|
move IMAGE_VERSION in extra compose file to make sure, main is always a knowingly working version
|
||||||
6
renovate.json
Normal file
6
renovate.json
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": [
|
||||||
|
"config:recommended"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user