mirror of
https://github.com/wallabag/docker
synced 2025-12-13 17:56:31 +00:00
Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a01e124295 | ||
|
|
4abeb0db73 | ||
|
|
ca1dd1d464 | ||
|
|
c58b7b4af2 | ||
|
|
4dcaf994ab | ||
|
|
8737b7115e | ||
|
|
dd280bd5cf | ||
|
|
e292a1c0c2 | ||
|
|
7cce137040 | ||
|
|
ad326dcfe3 | ||
|
|
71dd17939c | ||
|
|
66c3967ef5 | ||
|
|
6d7fdd92c8 | ||
|
|
f9f5b5c68c | ||
|
|
386924f2cc | ||
|
|
3d3f11fb85 | ||
|
|
de684f5a44 |
@@ -2,7 +2,7 @@ FROM alpine:latest
|
|||||||
|
|
||||||
LABEL maintainer "Marvin Steadfast <marvin@xsteadfastx.org>"
|
LABEL maintainer "Marvin Steadfast <marvin@xsteadfastx.org>"
|
||||||
|
|
||||||
ARG WALLABAG_VERSION=2.3.4
|
ARG WALLABAG_VERSION=2.3.7
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk update \
|
&& apk update \
|
||||||
@@ -39,12 +39,14 @@ RUN set -ex \
|
|||||||
php7-zlib \
|
php7-zlib \
|
||||||
php7-sockets \
|
php7-sockets \
|
||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
|
php7-tidy \
|
||||||
py-mysqldb \
|
py-mysqldb \
|
||||||
py-psycopg2 \
|
py-psycopg2 \
|
||||||
py-simplejson \
|
py-simplejson \
|
||||||
rabbitmq-c \
|
rabbitmq-c \
|
||||||
s6 \
|
s6 \
|
||||||
tar \
|
tar \
|
||||||
|
tzdata \
|
||||||
&& rm -rf /var/cache/apk/* \
|
&& rm -rf /var/cache/apk/* \
|
||||||
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||||||
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
||||||
@@ -56,7 +58,7 @@ COPY root /
|
|||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& cd /var/www/wallabag \
|
&& cd /var/www/wallabag \
|
||||||
&& SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist \
|
&& SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist --no-progress \
|
||||||
&& chown -R nobody:nobody /var/www/wallabag
|
&& chown -R nobody:nobody /var/www/wallabag
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
15
README.md
15
README.md
@@ -26,6 +26,7 @@ Default login is `wallabag:wallabag`.
|
|||||||
- `-e SYMFONY__ENV__DATABASE_PASSWORD=...` (defaults to "~", this is the password of the database user to use)
|
- `-e SYMFONY__ENV__DATABASE_PASSWORD=...` (defaults to "~", this is the password of the database user to use)
|
||||||
- `-e SYMFONY__ENV__DATABASE_CHARSET=...` (defaults to utf8, this is the database charset to use)
|
- `-e SYMFONY__ENV__DATABASE_CHARSET=...` (defaults to utf8, this is the database charset to use)
|
||||||
- `-e SYMFONY__ENV__SECRET=...` (defaults to "ovmpmAWXRCabNlMgzlzFXDYmCFfzGv")
|
- `-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_HOST=...` (defaults to "127.0.0.1", the SMTP host)
|
||||||
- `-e SYMFONY__ENV__MAILER_USER=...` (defaults to "~", the SMTP user)
|
- `-e SYMFONY__ENV__MAILER_USER=...` (defaults to "~", the SMTP user)
|
||||||
- `-e SYMFONY__ENV__MAILER_PASSWORD=...`(defaults to "~", the SMTP password)
|
- `-e SYMFONY__ENV__MAILER_PASSWORD=...`(defaults to "~", the SMTP password)
|
||||||
@@ -33,6 +34,11 @@ Default login is `wallabag:wallabag`.
|
|||||||
- `-e SYMFONY__ENV__FOSUSER_REGISTRATION=...`(defaults to "true", enable or disable public user registration)
|
- `-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__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-url-instance.com", 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)
|
||||||
|
- `-e SYMFONY__ENV__REDIS_PATH=...`(defaults to "~", path of the unix socket file)
|
||||||
|
- `-e SYMFONY__ENV__REDIS_PASSWORD=...` (defaults to "~", this is the password defined in the Redis server configuration)
|
||||||
- `-e POPULATE_DATABASE=...`(defaults to "True". Does the DB has to be populated or is it an existing one)
|
- `-e POPULATE_DATABASE=...`(defaults to "True". Does the DB has to be populated or is it an existing one)
|
||||||
|
|
||||||
## SQLite
|
## SQLite
|
||||||
@@ -69,13 +75,19 @@ $ docker run --name wallabag --link wallabag-db:wallabag-db -e "POSTGRES_PASSWOR
|
|||||||
|
|
||||||
## Redis
|
## Redis
|
||||||
|
|
||||||
To use redis support a linked redis container with the name `redis` is needed.
|
To use redis with a Docker link, a redis container with the name `redis` is needed and none of the `REDIS` environmental variables are needed:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run -p 6379:6379 --name redis redis:alpine
|
$ docker run -p 6379:6379 --name redis redis:alpine
|
||||||
$ docker run -p 80:80 --link redis:redis wallabag/wallabag
|
$ docker run -p 80:80 --link redis:redis wallabag/wallabag
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To use redis with an external redis host, set the appropriate environmental variables. Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker run -p 80:80 -e "SYMFONY__ENV__REDIS_HOST=my.server.hostname" -e "SYMFONY__ENV__REDIS_PASSWORD=my-secret-pw" wallabag/wallabag
|
||||||
|
```
|
||||||
|
|
||||||
## Upgrading
|
## Upgrading
|
||||||
|
|
||||||
If there is a version upgrade that needs a database migration. The most easy way to do is running the `migrate` command:
|
If there is a version upgrade that needs a database migration. The most easy way to do is running the `migrate` command:
|
||||||
@@ -112,6 +124,7 @@ services:
|
|||||||
- SYMFONY__ENV__MAILER_USER=~
|
- SYMFONY__ENV__MAILER_USER=~
|
||||||
- SYMFONY__ENV__MAILER_PASSWORD=~
|
- SYMFONY__ENV__MAILER_PASSWORD=~
|
||||||
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
|
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
|
||||||
|
- SYMFONY__ENV__DOMAIN_NAME=your-wallabag-url-instance.com
|
||||||
ports:
|
ports:
|
||||||
- "80"
|
- "80"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
@@ -25,6 +25,11 @@
|
|||||||
registration: "{{ lookup('env', 'SYMFONY__ENV__FOSUSER_REGISTRATION')|default('true', true) }}"
|
registration: "{{ lookup('env', 'SYMFONY__ENV__FOSUSER_REGISTRATION')|default('true', true) }}"
|
||||||
registration_mail_confirmation: "{{ lookup('env', 'SYMFONY__ENV__FOSUSER_CONFIRMATION')|default('true', true) }}"
|
registration_mail_confirmation: "{{ lookup('env', 'SYMFONY__ENV__FOSUSER_CONFIRMATION')|default('true', true) }}"
|
||||||
domain_name: "{{ lookup('env', 'SYMFONY__ENV__DOMAIN_NAME')|default('https://your-wallabag-url-instance.com', true) }}"
|
domain_name: "{{ lookup('env', 'SYMFONY__ENV__DOMAIN_NAME')|default('https://your-wallabag-url-instance.com', true) }}"
|
||||||
|
redis_scheme: "{{ lookup('env', 'SYMFONY__ENV__REDIS_SCHEME')|default('tcp', true) }}"
|
||||||
|
redis_host: "{{ lookup('env', 'SYMFONY__ENV__REDIS_HOST')|default('redis', true) }}"
|
||||||
|
redis_port: "{{ lookup('env', 'SYMFONY__ENV__REDIS_PORT')|default('6379', true) }}"
|
||||||
|
redis_path: "{{ lookup('env', 'SYMFONY__ENV__REDIS_PATH')|default('~', true) }}"
|
||||||
|
redis_password: "{{ lookup('env', 'SYMFONY__ENV__REDIS_PASSWORD')|default('~', true) }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
|||||||
@@ -43,8 +43,8 @@ parameters:
|
|||||||
rabbitmq_prefetch_count: 10
|
rabbitmq_prefetch_count: 10
|
||||||
|
|
||||||
# Redis processing
|
# Redis processing
|
||||||
redis_scheme: tcp
|
redis_scheme: {{ redis_scheme }}
|
||||||
redis_host: redis
|
redis_host: {{ redis_host }}
|
||||||
redis_port: 6379
|
redis_port: {{ redis_port }}
|
||||||
redis_path: null
|
redis_path: {{ redis_path }}
|
||||||
redis_password: null
|
redis_password: {{ redis_password }}
|
||||||
|
|||||||
Reference in New Issue
Block a user