mirror of
https://github.com/wallabag/docker
synced 2025-12-13 17:56:31 +00:00
Compare commits
78 Commits
2.3.4
...
2.5.0-rc.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d42727517 | ||
|
|
939b644424 | ||
|
|
3f62284368 | ||
|
|
7a99f1ef73 | ||
|
|
537b502424 | ||
|
|
bfd3fe3d55 | ||
|
|
ed49d39db4 | ||
|
|
983bfe094b | ||
|
|
37216dfd69 | ||
|
|
13862eca8f | ||
|
|
55b4290605 | ||
|
|
7873719099 | ||
|
|
05d9d45a54 | ||
|
|
13818bd90e | ||
|
|
1b5fe1a934 | ||
|
|
9d44149e4d | ||
|
|
2b99017b25 | ||
|
|
a85e592e6e | ||
|
|
f4a8e5eadc | ||
|
|
f460f40b8c | ||
|
|
58c3977a3c | ||
|
|
aede9b9c98 | ||
|
|
749587fb4f | ||
|
|
6839862b04 | ||
|
|
f4f8bac984 | ||
|
|
a04e494755 | ||
|
|
bd6e2b174e | ||
|
|
e7ebbc69da | ||
|
|
c5df063ccb | ||
|
|
d619c63e43 | ||
|
|
7e43f2acfa | ||
|
|
f02adb2504 | ||
|
|
0e7fa2bca7 | ||
|
|
1f1dd12cc3 | ||
|
|
b291bf697e | ||
|
|
511a2595bc | ||
|
|
6962f33ed7 | ||
|
|
836f9871ef | ||
|
|
d02c1a404a | ||
|
|
b8ab40b6b4 | ||
|
|
2cd061f08d | ||
|
|
1693adc27c | ||
|
|
a444f0db9d | ||
|
|
b98d38cbed | ||
|
|
6c548be161 | ||
|
|
174fa565eb | ||
|
|
45989b38de | ||
|
|
af075af5d8 | ||
|
|
51a60408e1 | ||
|
|
bea6b2fcc6 | ||
|
|
e189338065 | ||
|
|
8595085d6b | ||
|
|
503114fcba | ||
|
|
88bf8bb86d | ||
|
|
58a4d10cc5 | ||
|
|
501c4a08c6 | ||
|
|
710cc43af4 | ||
|
|
b2afa8eff4 | ||
|
|
a01e124295 | ||
|
|
4abeb0db73 | ||
|
|
ca1dd1d464 | ||
|
|
c58b7b4af2 | ||
|
|
4dcaf994ab | ||
|
|
8737b7115e | ||
|
|
dd280bd5cf | ||
|
|
e292a1c0c2 | ||
|
|
7cce137040 | ||
|
|
ad326dcfe3 | ||
|
|
71dd17939c | ||
|
|
66c3967ef5 | ||
|
|
6d7fdd92c8 | ||
|
|
f9f5b5c68c | ||
|
|
386924f2cc | ||
|
|
3d3f11fb85 | ||
|
|
47dc65b84e | ||
|
|
64fc68eb56 | ||
|
|
213d23691c | ||
|
|
de684f5a44 |
14
.github/dependabot.yml
vendored
Normal file
14
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: docker
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
||||||
|
time: "04:00"
|
||||||
|
timezone: Europe/Paris
|
||||||
|
open-pull-requests-limit: 10
|
||||||
|
ignore:
|
||||||
|
- dependency-name: alpine
|
||||||
|
versions:
|
||||||
|
- ">= 3.11.a"
|
||||||
|
- "< 3.12"
|
||||||
57
.github/workflows/publish.yml
vendored
Normal file
57
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
name: Publish Docker image
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push_to_registries:
|
||||||
|
name: Push Docker image to multiple registries
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
contents: read
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Log in to the Container registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
# Documentation: https://github.com/docker/setup-qemu-action
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
# Documentation: https://github.com/docker/setup-buildx-action
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Extract metadata (tags, labels) for Docker
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v3
|
||||||
|
with:
|
||||||
|
images: |
|
||||||
|
wallabag/wallabag
|
||||||
|
ghcr.io/${{ github.repository }}
|
||||||
|
|
||||||
|
- name: Build and push Docker images
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
# Support for different platforms, see here:
|
||||||
|
# https://github.com/docker/buildx/blob/master/docs/reference/buildx_build.md#-set-the-target-platforms-for-the-build---platform
|
||||||
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
54
.github/workflows/test.yml
vendored
Normal file
54
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
name: "CI"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- "master"
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "master"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: "Testing with database: ${{ matrix.database }}"
|
||||||
|
runs-on: "ubuntu-latest"
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
database:
|
||||||
|
- "default"
|
||||||
|
- "sqlite"
|
||||||
|
- "mariadb"
|
||||||
|
- "postgresql"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: "Checkout"
|
||||||
|
uses: "actions/checkout@v2"
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.5
|
||||||
|
|
||||||
|
- name: "Build image"
|
||||||
|
run: docker-compose -f tests/docker-compose.${{ matrix.database }}.yml build
|
||||||
|
|
||||||
|
- name: "Run image"
|
||||||
|
run: docker-compose -f tests/docker-compose.${{ matrix.database }}.yml up -d
|
||||||
|
|
||||||
|
- name: "Install dependencies"
|
||||||
|
run: |
|
||||||
|
pip install pytest
|
||||||
|
pip install requests
|
||||||
|
|
||||||
|
- name: "Check running instance"
|
||||||
|
run: docker ps
|
||||||
|
|
||||||
|
- name: "Wait 60s"
|
||||||
|
run: sleep 60
|
||||||
|
|
||||||
|
- name: "Run tests"
|
||||||
|
run: py.test tests/
|
||||||
26
.travis.yml
26
.travis.yml
@@ -1,26 +0,0 @@
|
|||||||
language: python
|
|
||||||
|
|
||||||
python:
|
|
||||||
- 3.5
|
|
||||||
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
env:
|
|
||||||
- DB_TYPE=default
|
|
||||||
- DB_TYPE=sqlite
|
|
||||||
- DB_TYPE=mariadb
|
|
||||||
- DB_TYPE=postgresql
|
|
||||||
|
|
||||||
install:
|
|
||||||
- docker-compose -f tests/docker-compose.$DB_TYPE.yml build
|
|
||||||
- docker-compose -f tests/docker-compose.$DB_TYPE.yml up -d
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- pip install pytest
|
|
||||||
- pip install requests
|
|
||||||
|
|
||||||
script:
|
|
||||||
- docker ps | grep -q wallabag
|
|
||||||
- sleep 60
|
|
||||||
- py.test tests/
|
|
||||||
19
Dockerfile
19
Dockerfile
@@ -1,8 +1,11 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:3.15
|
||||||
|
|
||||||
LABEL maintainer "Marvin Steadfast <marvin@xsteadfastx.org>"
|
LABEL maintainer "Marvin Steadfast <marvin@xsteadfastx.org>"
|
||||||
|
|
||||||
ARG WALLABAG_VERSION=2.3.4
|
ARG WALLABAG_VERSION=2.5.0
|
||||||
|
|
||||||
|
RUN apk add gnu-libiconv --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted
|
||||||
|
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk update \
|
&& apk update \
|
||||||
@@ -39,24 +42,30 @@ RUN set -ex \
|
|||||||
php7-zlib \
|
php7-zlib \
|
||||||
php7-sockets \
|
php7-sockets \
|
||||||
php7-xmlreader \
|
php7-xmlreader \
|
||||||
py-mysqldb \
|
php7-tidy \
|
||||||
py-psycopg2 \
|
php7-intl \
|
||||||
|
py3-mysqlclient \
|
||||||
|
py3-psycopg2 \
|
||||||
py-simplejson \
|
py-simplejson \
|
||||||
rabbitmq-c \
|
rabbitmq-c \
|
||||||
s6 \
|
s6 \
|
||||||
tar \
|
tar \
|
||||||
|
tzdata \
|
||||||
|
make \
|
||||||
|
bash \
|
||||||
&& 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 \
|
||||||
&& curl -s https://getcomposer.org/installer | php \
|
&& curl -s https://getcomposer.org/installer | php \
|
||||||
&& mv composer.phar /usr/local/bin/composer \
|
&& mv composer.phar /usr/local/bin/composer \
|
||||||
|
&& composer selfupdate 2.2.12 \
|
||||||
&& git clone --branch $WALLABAG_VERSION --depth 1 https://github.com/wallabag/wallabag.git /var/www/wallabag
|
&& git clone --branch $WALLABAG_VERSION --depth 1 https://github.com/wallabag/wallabag.git /var/www/wallabag
|
||||||
|
|
||||||
COPY root /
|
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
|
||||||
|
|||||||
60
README.md
60
README.md
@@ -1,6 +1,6 @@
|
|||||||
# What is wallabag?
|
# What is wallabag?
|
||||||
|
|
||||||
[](https://travis-ci.org/wallabag/docker)
|

|
||||||
[](https://hub.docker.com/r/wallabag/wallabag/)
|
[](https://hub.docker.com/r/wallabag/wallabag/)
|
||||||
[](https://hub.docker.com/r/wallabag/wallabag/)
|
[](https://hub.docker.com/r/wallabag/wallabag/)
|
||||||
|
|
||||||
@@ -15,10 +15,9 @@ Default login is `wallabag:wallabag`.
|
|||||||
## Environment variables
|
## Environment variables
|
||||||
|
|
||||||
- `-e MYSQL_ROOT_PASSWORD=...` (needed for the mariadb container to initialise and for the entrypoint in the wallabag container to create a database and user if its not there)
|
- `-e MYSQL_ROOT_PASSWORD=...` (needed for the mariadb container to initialise and for the entrypoint in the wallabag container to create a database and user if its not there)
|
||||||
- `-e POSTGRES_PASSWORD=...` (needed for the posgres container to initialise and for the entrypoint in the wallabag container to create a database and user if not there)
|
- `-e POSTGRES_PASSWORD=...` (needed for the postgres container to initialise and for the entrypoint in the wallabag container to create a database and user if not there)
|
||||||
- `-e POSTGRES_USER=...` (needed for the posgres container to initialise and for the entrypoint in the wallabag container to create a database and user if not there)
|
- `-e POSTGRES_USER=...` (needed for the posgres container to initialise and for the entrypoint in the wallabag container to create a database and user if not there)
|
||||||
- `-e SYMFONY__ENV__DATABASE_DRIVER=...` (defaults to "pdo_sqlite", this sets the database driver to use)
|
- `-e SYMFONY__ENV__DATABASE_DRIVER=...` (defaults to "pdo_sqlite", this sets the database driver to use)
|
||||||
- `-e SYMFONY__ENV__DATABASE_DRIVER_CLASS=...` (sets the database driver class to use)
|
|
||||||
- `-e SYMFONY__ENV__DATABASE_HOST=...` (defaults to "127.0.0.1", if use mysql this should be the name of the mariadb container)
|
- `-e SYMFONY__ENV__DATABASE_HOST=...` (defaults to "127.0.0.1", if use mysql this should be the name of the mariadb container)
|
||||||
- `-e SYMFONY__ENV__DATABASE_PORT=...` (port of the database host)
|
- `-e SYMFONY__ENV__DATABASE_PORT=...` (port of the database host)
|
||||||
- `-e SYMFONY__ENV__DATABASE_NAME=...`(defaults to "symfony", this is the name of the database to use)
|
- `-e SYMFONY__ENV__DATABASE_NAME=...`(defaults to "symfony", this is the name of the database to use)
|
||||||
@@ -26,27 +25,37 @@ 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)
|
||||||
- `-e SYMFONY__ENV__FROM_EMAIL=...`(defaults to "wallabag@example.com", the address wallabag uses for outgoing emails)
|
- `-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_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 SYMFONY__ENV__SENTRY_DSN=...` (defaults to "~", this is the data source name for sentry)
|
||||||
- `-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)
|
||||||
|
- `-e SYMFONY__ENV__SERVER_NAME=...` (defaults to "Your wallabag instance". Specifies a user-friendly name for the 2FA issuer)
|
||||||
|
|
||||||
## SQLite
|
## SQLite
|
||||||
|
|
||||||
The easiest way to start wallabag is to use the SQLite backend. You can spin that up with
|
The easiest way to start wallabag is to use the SQLite backend. You can spin that up with
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run -p 80:80 wallabag/wallabag
|
$ docker run -p 80:80 -e "SYMFONY__ENV__DOMAIN_NAME=http://localhost" wallabag/wallabag
|
||||||
```
|
```
|
||||||
|
|
||||||
and point your browser to `http://localhost:80`. For persistent storage you should start the container with a volume:
|
and point your browser to `http://localhost`. For persistent storage you should start the container with a volume:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run -v /opt/wallabag/data:/var/www/wallabag/data -v /opt/wallabag/images:/var/www/wallabag/web/assets/images -p 80:80 wallabag/wallabag
|
$ docker run -v /opt/wallabag/data:/var/www/wallabag/data -v /opt/wallabag/images:/var/www/wallabag/web/assets/images -p 80:80 -e "SYMFONY__ENV__DOMAIN_NAME=http://localhost" wallabag/wallabag
|
||||||
```
|
```
|
||||||
|
|
||||||
## MariaDB / MySQL
|
## MariaDB / MySQL
|
||||||
@@ -55,7 +64,7 @@ For using MariaDB or MySQL you have to define some environment variables with th
|
|||||||
|
|
||||||
```
|
```
|
||||||
$ docker run --name wallabag-db -e "MYSQL_ROOT_PASSWORD=my-secret-pw" -d mariadb
|
$ docker run --name wallabag-db -e "MYSQL_ROOT_PASSWORD=my-secret-pw" -d mariadb
|
||||||
$ docker run --name wallabag --link wallabag-db:wallabag-db -e "MYSQL_ROOT_PASSWORD=my-secret-pw" -e "SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql" -e "SYMFONY__ENV__DATABASE_HOST=wallabag-db" -e "SYMFONY__ENV__DATABASE_PORT=3306" -e "SYMFONY__ENV__DATABASE_NAME=wallabag" -e "SYMFONY__ENV__DATABASE_USER=wallabag" -e "SYMFONY__ENV__DATABASE_PASSWORD=wallapass" -e "SYMFONY__ENV__DATABASE_CHARSET=utf8mb4" -p 80:80 wallabag/wallabag
|
$ docker run --name wallabag --link wallabag-db:wallabag-db -e "MYSQL_ROOT_PASSWORD=my-secret-pw" -e "SYMFONY__ENV__DATABASE_DRIVER=pdo_mysql" -e "SYMFONY__ENV__DATABASE_HOST=wallabag-db" -e "SYMFONY__ENV__DATABASE_PORT=3306" -e "SYMFONY__ENV__DATABASE_NAME=wallabag" -e "SYMFONY__ENV__DATABASE_USER=wallabag" -e "SYMFONY__ENV__DATABASE_PASSWORD=wallapass" -e "SYMFONY__ENV__DATABASE_CHARSET=utf8mb4" -e "SYMFONY__ENV__DOMAIN_NAME=http://localhost" -p 80:80 wallabag/wallabag
|
||||||
```
|
```
|
||||||
|
|
||||||
## PostgreSQL
|
## PostgreSQL
|
||||||
@@ -64,16 +73,22 @@ For using PostgreSQL you have to define some environment variables with the cont
|
|||||||
|
|
||||||
```
|
```
|
||||||
$ docker run --name wallabag-db -e "POSTGRES_PASSWORD=my-secret-pw" -e "POSTGRES_USER=my-super-user" -d postgres:9.6
|
$ docker run --name wallabag-db -e "POSTGRES_PASSWORD=my-secret-pw" -e "POSTGRES_USER=my-super-user" -d postgres:9.6
|
||||||
$ docker run --name wallabag --link wallabag-db:wallabag-db -e "POSTGRES_PASSWORD=my-secret-pw" -e "POSTGRES_USER=my-super-user" -e "SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql" -e 'SYMFONY__ENV__DATABASE_DRIVER_CLASS=Wallabag\CoreBundle\Doctrine\DBAL\Driver\CustomPostgreSQLDriver' -e "SYMFONY__ENV__DATABASE_HOST=wallabag-db" -e "SYMFONY__ENV__DATABASE_PORT=5432" -e "SYMFONY__ENV__DATABASE_NAME=wallabag" -e "SYMFONY__ENV__DATABASE_USER=wallabag" -e "SYMFONY__ENV__DATABASE_PASSWORD=wallapass" -p 80:80 wallabag/wallabag
|
$ docker run --name wallabag --link wallabag-db:wallabag-db -e "POSTGRES_PASSWORD=my-secret-pw" -e "POSTGRES_USER=my-super-user" -e "SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql" -e "SYMFONY__ENV__DATABASE_HOST=wallabag-db" -e "SYMFONY__ENV__DATABASE_PORT=5432" -e "SYMFONY__ENV__DATABASE_NAME=wallabag" -e "SYMFONY__ENV__DATABASE_USER=wallabag" -e "SYMFONY__ENV__DATABASE_PASSWORD=wallapass" -e "SYMFONY__ENV__DOMAIN_NAME=http://localhost" -p 80:80 wallabag/wallabag
|
||||||
```
|
```
|
||||||
|
|
||||||
## 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 -e "SYMFONY__ENV__DOMAIN_NAME=http://localhost" --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" -e "SYMFONY__ENV__DOMAIN_NAME=http://localhost" wallabag/wallabag
|
||||||
```
|
```
|
||||||
|
|
||||||
## Upgrading
|
## Upgrading
|
||||||
@@ -92,7 +107,7 @@ $ docker exec -t NAME_OR_ID_OF_YOUR_WALLABAG_CONTAINER /var/www/wallabag/bin/con
|
|||||||
|
|
||||||
## docker-compose
|
## docker-compose
|
||||||
|
|
||||||
It's a good way to use [docker-compose](https://docs.docker.com/compose/). Example:
|
An example [docker-compose](https://docs.docker.com/compose/) file can be seen below:
|
||||||
|
|
||||||
```
|
```
|
||||||
version: '3'
|
version: '3'
|
||||||
@@ -112,18 +127,35 @@ 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=https://your-wallabag-url-instance.com
|
||||||
|
- SYMFONY__ENV__SERVER_NAME="Your wallabag instance"
|
||||||
ports:
|
ports:
|
||||||
- "80"
|
- "80"
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/wallabag/images:/var/www/wallabag/web/assets/images
|
- /opt/wallabag/images:/var/www/wallabag/web/assets/images
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost"]
|
||||||
|
interval: 1m
|
||||||
|
timeout: 3s
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
- redis
|
||||||
db:
|
db:
|
||||||
image: mariadb
|
image: mariadb
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=wallaroot
|
- MYSQL_ROOT_PASSWORD=wallaroot
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/wallabag/data:/var/lib/mysql
|
- /opt/wallabag/data:/var/lib/mysql
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
|
||||||
|
interval: 20s
|
||||||
|
timeout: 3s
|
||||||
redis:
|
redis:
|
||||||
image: redis:alpine
|
image: redis:alpine
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "redis-cli", "ping"]
|
||||||
|
interval: 20s
|
||||||
|
timeout: 3s
|
||||||
```
|
```
|
||||||
|
|
||||||
Note that you must fill out the mail related variables according to your mail config.
|
Note that you must fill out the mail related variables according to your mail config.
|
||||||
@@ -153,7 +185,7 @@ server {
|
|||||||
|
|
||||||
## Import worker
|
## Import worker
|
||||||
|
|
||||||
To run the [async redis import worker](http://doc.wallabag.org/en/master/developer/asynchronous.html#install-redis-for-asynchronous-tasks) use the following command:
|
To run the [async redis import worker](https://doc.wallabag.org/en/admin/asynchronous.html#install-redis-for-asynchronous-tasks) use the following command:
|
||||||
```
|
```
|
||||||
$ docker run --name wallabag --link wallabag-db:wallabag-db --link redis:redis -e <... your config variables here ...> wallabag/wallabag import <type>
|
$ docker run --name wallabag --link wallabag-db:wallabag-db --link redis:redis -e <... your config variables here ...> wallabag/wallabag import <type>
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ fi
|
|||||||
if [ "$1" = "import" ];then
|
if [ "$1" = "import" ];then
|
||||||
provisioner --skip-tags=firstrun
|
provisioner --skip-tags=firstrun
|
||||||
cd /var/www/wallabag/
|
cd /var/www/wallabag/
|
||||||
exec su -c "bin/console wallabag:import:redis-worker -e=prod $2 -vv" -s /bin/sh nobody
|
exec su -c "bin/console wallabag:import:redis-worker --env=prod $2 -vv" -s /bin/sh nobody
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$1" = "migrate" ];then
|
if [ "$1" = "migrate" ];then
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
vars:
|
vars:
|
||||||
|
|
||||||
database_driver: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_DRIVER')|default('pdo_sqlite', true) }}"
|
database_driver: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_DRIVER')|default('pdo_sqlite', true) }}"
|
||||||
database_driver_class: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_DRIVER_CLASS')|default('~', true) }}"
|
|
||||||
database_host: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_HOST')|default('127.0.0.1', true) }}"
|
database_host: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_HOST')|default('127.0.0.1', true) }}"
|
||||||
database_name: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_NAME')|default('symfony', true) }}"
|
database_name: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_NAME')|default('symfony', true) }}"
|
||||||
database_password: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_PASSWORD')|default('~', true) }}"
|
database_password: "{{ lookup('env', 'SYMFONY__ENV__DATABASE_PASSWORD')|default('~', true) }}"
|
||||||
@@ -18,13 +17,26 @@
|
|||||||
populate_database: "{{ lookup('env', 'POPULATE_DATABASE')|default(True, true) }}"
|
populate_database: "{{ lookup('env', 'POPULATE_DATABASE')|default(True, true) }}"
|
||||||
locale: "{{ lookup('env', 'SYMFONY__ENV__LOCALE')|default('en', true) }}"
|
locale: "{{ lookup('env', 'SYMFONY__ENV__LOCALE')|default('en', true) }}"
|
||||||
secret: "{{ lookup('env', 'SYMFONY__ENV__SECRET')|default('ovmpmAWXRCabNlMgzlzFXDYmCFfzGv', true) }}"
|
secret: "{{ lookup('env', 'SYMFONY__ENV__SECRET')|default('ovmpmAWXRCabNlMgzlzFXDYmCFfzGv', true) }}"
|
||||||
|
mailer_transport: "{{ lookup('env', 'SYMFONY__ENV__MAILER_TRANSPORT')|default('smtp', true) }}"
|
||||||
mailer_host: "{{ lookup('env', 'SYMFONY__ENV__MAILER_HOST')|default('127.0.0.1', true) }}"
|
mailer_host: "{{ lookup('env', 'SYMFONY__ENV__MAILER_HOST')|default('127.0.0.1', true) }}"
|
||||||
mailer_user: "{{ lookup('env', 'SYMFONY__ENV__MAILER_USER')|default('~', true) }}"
|
mailer_user: "{{ lookup('env', 'SYMFONY__ENV__MAILER_USER')|default('~', true) }}"
|
||||||
mailer_password: "{{ lookup('env', 'SYMFONY__ENV__MAILER_PASSWORD')|default('~', true) }}"
|
mailer_password: "{{ lookup('env', 'SYMFONY__ENV__MAILER_PASSWORD')|default('~', true) }}"
|
||||||
|
mailer_port: "{{ lookup('env', 'SYMFONY__ENV__MAILER_PORT')|default('25', true) }}"
|
||||||
|
mailer_encryption: "{{ lookup('env', 'SYMFONY__ENV__MAILER_ENCRYPTION')|default('~', true) }}"
|
||||||
|
mailer_auth_mode: "{{ lookup('env', 'SYMFONY__ENV__MAILER_AUTH_MODE')|default('~', true) }}"
|
||||||
from_email: "{{ lookup('env', 'SYMFONY__ENV__FROM_EMAIL')|default('wallabag@example.com', true) }}"
|
from_email: "{{ lookup('env', 'SYMFONY__ENV__FROM_EMAIL')|default('wallabag@example.com', true) }}"
|
||||||
|
twofactor_auth: "{{ lookup('env', 'SYMFONY__ENV__TWOFACTOR_AUTH')|default('true', true) }}"
|
||||||
|
twofactor_sender: "{{ lookup('env', 'SYMFONY__ENV__TWOFACTOR_SENDER')|default('no-reply@wallabag.org', true) }}"
|
||||||
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) }}"
|
||||||
|
sentry_dsn: "{{ lookup('env', 'SYMFONY__ENV__SENTRY_DSN')|default('~', true) }}"
|
||||||
|
server_name: "{{ lookup('env', 'SYMFONY__ENV__SERVER_NAME')|default('Your wallabag instance', true) }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
parameters:
|
parameters:
|
||||||
database_driver: {{ database_driver }}
|
database_driver: {{ database_driver }}
|
||||||
database_driver_class: {{ database_driver_class }}
|
|
||||||
database_host: {{ database_host }}
|
database_host: {{ database_host }}
|
||||||
database_port: {{ database_port }}
|
database_port: {{ database_port }}
|
||||||
database_name: {{ database_name }}
|
database_name: {{ database_name }}
|
||||||
@@ -13,10 +12,13 @@ parameters:
|
|||||||
|
|
||||||
domain_name: {{ domain_name }}
|
domain_name: {{ domain_name }}
|
||||||
|
|
||||||
mailer_transport: smtp
|
mailer_transport: {{ mailer_transport }}
|
||||||
mailer_host: {{ mailer_host }}
|
|
||||||
mailer_user: {{ mailer_user }}
|
mailer_user: {{ mailer_user }}
|
||||||
mailer_password: {{ mailer_password }}
|
mailer_password: {{ mailer_password }}
|
||||||
|
mailer_host: {{ mailer_host }}
|
||||||
|
mailer_port: {{ mailer_port }}
|
||||||
|
mailer_encryption: {{ mailer_encryption }}
|
||||||
|
mailer_auth_mode: {{ mailer_auth_mode }}
|
||||||
|
|
||||||
locale: {{ locale }}
|
locale: {{ locale }}
|
||||||
|
|
||||||
@@ -24,13 +26,18 @@ parameters:
|
|||||||
secret: {{ secret }}
|
secret: {{ secret }}
|
||||||
|
|
||||||
# two factor stuff
|
# two factor stuff
|
||||||
twofactor_auth: true
|
twofactor_auth: {{ twofactor_auth }}
|
||||||
twofactor_sender: no-reply@wallabag.org
|
twofactor_sender: {{ twofactor_sender }}
|
||||||
|
|
||||||
# fosuser stuff
|
# fosuser stuff
|
||||||
fosuser_registration: {{ registration }}
|
fosuser_registration: {{ registration }}
|
||||||
fosuser_confirmation: {{ registration_mail_confirmation }}
|
fosuser_confirmation: {{ registration_mail_confirmation }}
|
||||||
|
|
||||||
|
# how long the access token should live in seconds for the API
|
||||||
|
fos_oauth_server_access_token_lifetime: 3600
|
||||||
|
# how long the refresh token should life in seconds for the API
|
||||||
|
fos_oauth_server_refresh_token_lifetime: 1209600
|
||||||
|
|
||||||
from_email: {{ from_email }}
|
from_email: {{ from_email }}
|
||||||
|
|
||||||
rss_limit: 50
|
rss_limit: 50
|
||||||
@@ -43,8 +50,14 @@ 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 }}
|
||||||
|
|
||||||
|
# sentry logging
|
||||||
|
sentry_dsn: {{ sentry_dsn }}
|
||||||
|
|
||||||
|
# User-friendly name of your instance for 2FA issuer
|
||||||
|
server_name: {{ server_name }}
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ http {
|
|||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
root /var/www/wallabag/web;
|
root /var/www/wallabag/web;
|
||||||
|
|
||||||
|
|||||||
@@ -373,7 +373,7 @@ zend.enable_gc = On
|
|||||||
; threat in any way, but it makes it possible to determine whether you use PHP
|
; threat in any way, but it makes it possible to determine whether you use PHP
|
||||||
; on your server or not.
|
; on your server or not.
|
||||||
; http://php.net/expose-php
|
; http://php.net/expose-php
|
||||||
expose_php = On
|
expose_php = Off
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;
|
||||||
; Resource Limits ;
|
; Resource Limits ;
|
||||||
|
|||||||
@@ -9,22 +9,16 @@ parameters:
|
|||||||
database_table_prefix: wallabag_
|
database_table_prefix: wallabag_
|
||||||
database_socket: null
|
database_socket: null
|
||||||
database_charset: utf8
|
database_charset: utf8
|
||||||
database_driver_class: null
|
|
||||||
|
|
||||||
domain_name: https://your-wallabag-url-instance.com
|
domain_name: https://your-wallabag-url-instance.com
|
||||||
|
|
||||||
test_database_driver: pdo_sqlite
|
|
||||||
test_database_host: 127.0.0.1
|
|
||||||
test_database_port: ~
|
|
||||||
test_database_name: ~
|
|
||||||
test_database_user: ~
|
|
||||||
test_database_password: ~
|
|
||||||
test_database_path: "%kernel.root_dir%/../data/db/wallabag_test.sqlite"
|
|
||||||
|
|
||||||
mailer_transport: smtp
|
mailer_transport: smtp
|
||||||
mailer_host: 127.0.0.1
|
|
||||||
mailer_user: ~
|
mailer_user: ~
|
||||||
mailer_password: ~
|
mailer_password: ~
|
||||||
|
mailer_host: 127.0.0.1
|
||||||
|
mailer_port: false
|
||||||
|
mailer_encryption: ~
|
||||||
|
mailer_auth_mode: ~
|
||||||
|
|
||||||
locale: en
|
locale: en
|
||||||
|
|
||||||
@@ -39,6 +33,11 @@ parameters:
|
|||||||
fosuser_registration: true
|
fosuser_registration: true
|
||||||
fosuser_confirmation: true
|
fosuser_confirmation: true
|
||||||
|
|
||||||
|
# how long the access token should live in seconds for the API
|
||||||
|
fos_oauth_server_access_token_lifetime: 3600
|
||||||
|
# how long the refresh token should life in seconds for the API
|
||||||
|
fos_oauth_server_refresh_token_lifetime: 1209600
|
||||||
|
|
||||||
from_email: no-reply@wallabag.org
|
from_email: no-reply@wallabag.org
|
||||||
|
|
||||||
rss_limit: 50
|
rss_limit: 50
|
||||||
@@ -56,3 +55,9 @@ parameters:
|
|||||||
redis_port: 6379
|
redis_port: 6379
|
||||||
redis_path: null
|
redis_path: null
|
||||||
redis_password: null
|
redis_password: null
|
||||||
|
|
||||||
|
# sentry logging
|
||||||
|
sentry_dsn: ~
|
||||||
|
|
||||||
|
# User-friendly name of your instance for 2FA issuer
|
||||||
|
server_name: Your wallabag instance
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ services:
|
|||||||
- POSTGRES_USER=my-super-user
|
- POSTGRES_USER=my-super-user
|
||||||
- SYMFONY__ENV__SECRET=F00B4R
|
- SYMFONY__ENV__SECRET=F00B4R
|
||||||
- SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql
|
- SYMFONY__ENV__DATABASE_DRIVER=pdo_pgsql
|
||||||
- SYMFONY__ENV__DATABASE_DRIVER_CLASS=Wallabag\CoreBundle\Doctrine\DBAL\Driver\CustomPostgreSQLDriver
|
|
||||||
- SYMFONY__ENV__DATABASE_HOST=db
|
- SYMFONY__ENV__DATABASE_HOST=db
|
||||||
- SYMFONY__ENV__DATABASE_PORT=5432
|
- SYMFONY__ENV__DATABASE_PORT=5432
|
||||||
- SYMFONY__ENV__DATABASE_NAME=wallabag
|
- SYMFONY__ENV__DATABASE_NAME=wallabag
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ def test_accessing_login_page():
|
|||||||
r = requests.get(URL, allow_redirects=True)
|
r = requests.get(URL, allow_redirects=True)
|
||||||
|
|
||||||
assert r.status_code == 200
|
assert r.status_code == 200
|
||||||
assert 'Login' in r.text
|
assert 'Log in' in r.text
|
||||||
assert 'Password' in r.text
|
assert 'Password' in r.text
|
||||||
assert 'Register' in r.text
|
assert 'Register' in r.text
|
||||||
assert 'Username' in r.text
|
assert 'Username' in r.text
|
||||||
|
|||||||
Reference in New Issue
Block a user