Compare commits

...

3 Commits

Author SHA1 Message Date
3wc 88c34e9487 chore: publish 0.5.2+2.6.8 release
continuous-integration/drone/push Build is passing Details
2024-01-20 23:02:35 -03:00
3wc 1156bb6fca Various updates 2024-01-20 23:02:16 -03:00
3wc d9f3455b62 chore: publish 0.5.1+2.6.8 release 2024-01-20 22:08:50 -03:00
3 changed files with 10 additions and 33 deletions

View File

@ -1 +1 @@
export ENTRYPOINT_VERSION=v1
export ENTRYPOINT_VERSION=v4

View File

@ -1,7 +1,7 @@
version: "3.8"
services:
app:
image: wallabag/wallabag:2.6.1
image: wallabag/wallabag:2.6.8
environment:
# Prevent database creation (handled by MySQL service)
- POPULATE_DATABASE="false"
@ -16,7 +16,7 @@ services:
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
- SYMFONY__ENV__MAILER_HOST
- SYMFONY__ENV__MAILER_USER
- SYMFONY__ENV__MAILER_PASSWORD=/run/secrets/smtp_password
- SYMFONY__ENV__MAILER_PASSWORD_FILE=/run/secrets/smtp_password
- SYMFONY__ENV__FROM_EMAIL
- SYMFONY__ENV__DOMAIN_NAME=https://${DOMAIN}
- SYMFONY__ENV__FOSUSER_REGISTRATION
@ -28,7 +28,6 @@ services:
- internal
secrets:
- db_password
#- admin_password
- app_secret
- smtp_password
entrypoint: /custom-entrypoint.sh
@ -49,9 +48,9 @@ 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=0.5.0+2.6.1"
- "coop-cloud.${STACK_NAME}.version=0.5.2+2.6.8"
db:
image: mariadb:10.11
image: mariadb:11.2
environment:
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
- MYSQL_USER=wallabag
@ -65,7 +64,7 @@ services:
- db_password
- db_root_password
redis:
image: redis:7.0.11-alpine
image: redis:7.2.4-alpine
networks:
- internal
volumes:

View File

@ -1,31 +1,9 @@
#!/bin/bash
#!/bin/sh
set -eu
export SYMFONY__ENV__DATABASE_PASSWORD=$(cat $SYMFONY__ENV__DATABASE_PASSWORD_FILE)
export SYMFONY__ENV__SECRET=$(cat $SYMFONY__ENV__SECRET_FILE)
file_env() {
local var="$1"
local fileVar="${var}_FILE"
local def="${2:-}"
if [ "${!var:-}" ] && [ "${!fileVar:-}" ]; then
echo >&2 "error: both $var and $fileVar are set (but are exclusive)"
exit 1
fi
local val="$def"
if [ "${!var:-}" ]; then
val="${!var}"
elif [ "${!fileVar:-}" ]; then
val="$(< "${!fileVar}")"
fi
export "$var"="$val"
unset "$fileVar"
}
file_env "SYMFONY__ENV__DATABASE_PASSWORD"
file_env "SYMFONY__ENV__SECRET"
export SYMFONY__ENV__MAILER_DSN=smtp://${SYMFONY__ENV__MAILER_USER}:$(cat ${SYMFONY__ENV__MAILER_PASSWORD_FILE})@${SYMFONY__ENV__MAILER_HOST}:465
# https://github.com/wallabag/docker/blob/master/root/entrypoint.sh
sh -c "/entrypoint.sh migrate"