mirror of
https://github.com/wallabag/docker
synced 2025-12-13 09:46:27 +00:00
@@ -9,7 +9,7 @@ FROM alpine:3.17
|
||||
|
||||
COPY --from=builder /go/bin/envsubst /usr/bin/envsubst
|
||||
|
||||
ARG WALLABAG_VERSION=2.5.4
|
||||
ARG WALLABAG_VERSION=2.6.1
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache \
|
||||
@@ -43,6 +43,7 @@ RUN set -ex \
|
||||
php81-xmlreader \
|
||||
php81-tidy \
|
||||
php81-intl \
|
||||
php81-sodium \
|
||||
mariadb-client \
|
||||
postgresql14-client \
|
||||
rabbitmq-c \
|
||||
@@ -56,7 +57,6 @@ RUN set -ex \
|
||||
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
||||
&& curl -s https://getcomposer.org/installer | php \
|
||||
&& mv composer.phar /usr/local/bin/composer \
|
||||
&& composer selfupdate 2.2.18 \
|
||||
&& rm -rf /root/.composer/*
|
||||
|
||||
COPY root /
|
||||
|
||||
12
README.md
12
README.md
@@ -27,15 +27,13 @@ Default login is `wallabag:wallabag`.
|
||||
- `-e SYMFONY__ENV__DATABASE_TABLE_PREFIX=...` (defaults to "wallabag_". Specifies the prefix for each database table)
|
||||
- `-e SYMFONY__ENV__SECRET=...` (defaults to "ovmpmAWXRCabNlMgzlzFXDYmCFfzGv")
|
||||
- `-e SYMFONY__ENV__LOCALE=...` (default to en)
|
||||
- `-e SYMFONY__ENV__MAILER_HOST=...` (defaults to "127.0.0.1", the SMTP host)
|
||||
- `-e SYMFONY__ENV__MAILER_USER=...` (defaults to "~", the SMTP user)
|
||||
- `-e SYMFONY__ENV__MAILER_PASSWORD=...`(defaults to "~", the SMTP password)
|
||||
- `-e SYMFONY__ENV__MAILER_DSN=...` (defaults to "smtp://127.0.0.1")
|
||||
- `-e SYMFONY__ENV__FROM_EMAIL=...`(defaults to "`wallabag@example.com`", the address wallabag uses for outgoing emails)
|
||||
- `-e SYMFONY__ENV__TWOFACTOR_AUTH=...` (defaults to "true", enable or disable two-factor authentication)
|
||||
- `-e SYMFONY__ENV__TWOFACTOR_SENDER=...` (defaults to "`no-reply@wallabag.org`", the address wallabag uses for two-factor emails)
|
||||
- `-e SYMFONY__ENV__FOSUSER_REGISTRATION=...`(defaults to "true", enable or disable public user registration)
|
||||
- `-e SYMFONY__ENV__FOSUSER_CONFIRMATION=...`(defaults to "true", enable or disable registration confirmation)
|
||||
- `-e SYMFONY__ENV__DOMAIN_NAME=...` defaults to "`https://your-wallabag-url-instance.com`", the URL of your wallabag instance)
|
||||
- `-e SYMFONY__ENV__DOMAIN_NAME=...` defaults to "`https://your-wallabag-instance.wallabag.org`", the URL of your wallabag instance)
|
||||
- `-e SYMFONY__ENV__REDIS_SCHEME=...` (defaults to "tcp", protocol to use to communicate with the target server (tcp, unix, or http))
|
||||
- `-e SYMFONY__ENV__REDIS_HOST=...` (defaults to "redis", IP or hostname of the target server)
|
||||
- `-e SYMFONY__ENV__REDIS_PORT=...` (defaults to "6379", port of the target host)
|
||||
@@ -125,11 +123,9 @@ services:
|
||||
- SYMFONY__ENV__DATABASE_PASSWORD=wallapass
|
||||
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
|
||||
- SYMFONY__ENV__DATABASE_TABLE_PREFIX="wallabag_"
|
||||
- SYMFONY__ENV__MAILER_HOST=127.0.0.1
|
||||
- SYMFONY__ENV__MAILER_USER=~
|
||||
- SYMFONY__ENV__MAILER_PASSWORD=~
|
||||
- SYMFONY__ENV__MAILER_DSN=smtp://127.0.0.1
|
||||
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
|
||||
- SYMFONY__ENV__DOMAIN_NAME=https://your-wallabag-url-instance.com
|
||||
- SYMFONY__ENV__DOMAIN_NAME=https://your-wallabag-instance.wallabag.org
|
||||
- SYMFONY__ENV__SERVER_NAME="Your wallabag instance"
|
||||
ports:
|
||||
- "80"
|
||||
|
||||
@@ -33,7 +33,8 @@ provisioner() {
|
||||
fi
|
||||
|
||||
# Configure SQLite database
|
||||
if [ "$SYMFONY__ENV__DATABASE_DRIVER" = "pdo_sqlite" ] && [ ! -f "/var/www/wallabag/data/db/wallabag.sqlite" ] ; then
|
||||
SQLITE_FILE_SIZE=$(wc -c "/var/www/wallabag/data/db/wallabag.sqlite" | awk '{print $1}')
|
||||
if [ "$SYMFONY__ENV__DATABASE_DRIVER" = "pdo_sqlite" ] && ([ ! -f "/var/www/wallabag/data/db/wallabag.sqlite" ] || [ "$SQLITE_FILE_SIZE" = 0 ]) ; then
|
||||
echo "Configuring the SQLite database ..."
|
||||
install_wallabag
|
||||
fi
|
||||
@@ -87,9 +88,9 @@ provisioner() {
|
||||
}
|
||||
|
||||
if [ "$COMMAND_ARG1" = "wallabag" ]; then
|
||||
echo "Starting Wallabag ..."
|
||||
echo "Starting wallabag ..."
|
||||
provisioner
|
||||
echo "Wallabag is ready!"
|
||||
echo "wallabag is ready!"
|
||||
exec s6-svscan /etc/s6/
|
||||
fi
|
||||
|
||||
|
||||
@@ -10,15 +10,9 @@ parameters:
|
||||
database_socket: null
|
||||
database_charset: ${SYMFONY__ENV__DATABASE_CHARSET:-utf8}
|
||||
|
||||
domain_name: ${SYMFONY__ENV__DOMAIN_NAME:-https://your-wallabag-url-instance.com}
|
||||
domain_name: ${SYMFONY__ENV__DOMAIN_NAME:-https://your-wallabag-instance.wallabag.org}
|
||||
|
||||
mailer_transport: ${SYMFONY__ENV__MAILER_TRANSPORT:-smtp}
|
||||
mailer_user: ${SYMFONY__ENV__MAILER_USER:-~}
|
||||
mailer_password: ${SYMFONY__ENV__MAILER_PASSWORD:-~}
|
||||
mailer_host: ${SYMFONY__ENV__MAILER_HOST:-127.0.0.1}
|
||||
mailer_port: ${SYMFONY__ENV__MAILER_PORT:-25}
|
||||
mailer_encryption: ${SYMFONY__ENV__MAILER_ENCRYPTION:-~}
|
||||
mailer_auth_mode: ${SYMFONY__ENV__MAILER_AUTH_MODE:-~}
|
||||
mailer_dsn: ${SYMFONY__ENV__MAILER_DSN:-smtp://127.0.0.1}
|
||||
|
||||
locale: ${SYMFONY__ENV__LOCALE:-en}
|
||||
|
||||
|
||||
@@ -18,6 +18,6 @@ services:
|
||||
- "127.0.0.1:80:80"
|
||||
db:
|
||||
image: mariadb
|
||||
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --character-set-client-handshake=FALSE
|
||||
command: mariadbd --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --character-set-client-handshake=FALSE
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=wallaroot
|
||||
|
||||
@@ -11,7 +11,7 @@ services:
|
||||
- SYMFONY__ENV__DATABASE_PORT=~
|
||||
- SYMFONY__ENV__DATABASE_NAME=symfony
|
||||
- SYMFONY__ENV__DATABASE_USER=root
|
||||
- SYMFONY__ENV_DATABASE_PASSWORD=~
|
||||
- SYMFONY__ENV__DATABASE_PASSWORD=~
|
||||
- SYMFONY__ENV__SECRET=F00B4R
|
||||
ports:
|
||||
- "127.0.0.1:80:80"
|
||||
|
||||
Reference in New Issue
Block a user