forked from coop-cloud/wordpress
Compare commits
5 Commits
2.0.1+6.0.
...
2.2.0+6.1.
Author | SHA1 | Date | |
---|---|---|---|
ef7bed62dd | |||
581cd72a9a | |||
50cd246597
|
|||
a55be09951 | |||
5538ce9c3e |
BIN
.abra.sh.swp
Normal file
BIN
.abra.sh.swp
Normal file
Binary file not shown.
BIN
.compose.yml.swo
Normal file
BIN
.compose.yml.swo
Normal file
Binary file not shown.
BIN
.compose.yml.swp
Normal file
BIN
.compose.yml.swp
Normal file
Binary file not shown.
@ -11,6 +11,9 @@ LETS_ENCRYPT_ENV=production
|
||||
SECRET_DB_ROOT_PASSWORD_VERSION=v1
|
||||
SECRET_DB_PASSWORD_VERSION=v1
|
||||
|
||||
# Mostly for compatibility with existing database dumps...
|
||||
#WORDPRESS_TABLE_PREFIX=wp_
|
||||
|
||||
# Multisite
|
||||
#WORDPRESS_CONFIG_EXTRA="\
|
||||
# define('WP_CACHE', false);\
|
||||
|
4
abra.sh
4
abra.sh
@ -7,6 +7,10 @@ wp() {
|
||||
/usr/local/bin/wp $@
|
||||
}
|
||||
|
||||
fix_mysql() {
|
||||
echo "ALTER TABLE mysql.column_stats MODIFY histogram longblob; ALTER TABLE mysql.column_stats MODIFY hist_type enum('SINGLE_PREC_HB','DOUBLE_PREC_HB','JSON_HB');" | mysql -u root -p$(cat /run/secrets/db_root_password)
|
||||
}
|
||||
|
||||
sub_wp() {
|
||||
CONTAINER=$(docker container ls -f "Name=${STACK_NAME}_app" --format '{{ .ID }}')
|
||||
if [ -z "$CONTAINER" ]; then
|
||||
|
@ -3,7 +3,7 @@ version: "3.8"
|
||||
|
||||
services:
|
||||
app:
|
||||
image: "wordpress:6.0.1"
|
||||
image: "wordpress:6.1.1"
|
||||
volumes:
|
||||
- "wordpress_content:/var/www/html/wp-content/"
|
||||
networks:
|
||||
@ -16,6 +16,7 @@ services:
|
||||
- WORDPRESS_DB_PASSWORD_FILE=/run/secrets/db_password
|
||||
- WORDPRESS_DB_NAME=wordpress
|
||||
- WORDPRESS_CONFIG_EXTRA=${WORDPRESS_CONFIG_EXTRA}
|
||||
- WORDPRESS_TABLE_PREFIX
|
||||
- PHP_EXTENSIONS
|
||||
secrets:
|
||||
- db_password
|
||||
@ -49,7 +50,7 @@ services:
|
||||
#- "traefik.http.routers.${STACK_NAME}.rule=HostRegexp(`{subdomain:.+}.${DOMAIN}`, `${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.0.1+6.0.1"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.2.0+6.1.1"
|
||||
- "backupbot.backup=true"
|
||||
- "backupbot.backup.path=/var/www/html"
|
||||
|
||||
@ -71,8 +72,10 @@ services:
|
||||
labels:
|
||||
backupbot.backup: "true"
|
||||
backupbot.backup.path: "/tmp/dump.sql.gz"
|
||||
backupbot.backup.post-hook: "rm -f /tmp/dump.sql.gz"
|
||||
backupbot.backup.pre-hook: "sh -c 'mysqldump --single-transaction -u root -p\"$$(cat /run/secrets/db_root_password)\" wordpress | gzip > /tmp/dump.sql.gz'"
|
||||
backupbot.backup.post-hook: "rm -f /tmp/dump.sql.gz"
|
||||
backupbot.restore: "true"
|
||||
backupbot.restore.post-hook: "sh -c 'mysql -u root -p\"$$(cat /run/secrets/db_root_password)\" wordpress < /tmp/dbdump.sql && rm -f /tmp/dbdump.sql'"
|
||||
|
||||
networks:
|
||||
backend:
|
||||
|
Reference in New Issue
Block a user