|
|
|
|
@@ -24,14 +24,20 @@ Default login is `wallabag:wallabag`.
|
|
|
|
|
- `-e SYMFONY__ENV__DATABASE_NAME=...`(defaults to "symfony", this is the name of the database to use)
|
|
|
|
|
- `-e SYMFONY__ENV__DATABASE_USER=...` (defaults to "root", this is the name 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__SECRET=...` (defaults to "ovmpmAWXRCabNlMgzlzFXDYmCFfzGv")
|
|
|
|
|
- `-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_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__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__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)
|
|
|
|
|
|
|
|
|
|
## SQLite
|
|
|
|
|
@@ -54,7 +60,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 --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" -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" -p 80:80 wallabag/wallabag
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## PostgreSQL
|
|
|
|
|
@@ -68,13 +74,19 @@ $ docker run --name wallabag --link wallabag-db:wallabag-db -e "POSTGRES_PASSWOR
|
|
|
|
|
|
|
|
|
|
## 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 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
|
|
|
|
|
|
|
|
|
|
If there is a version upgrade that needs a database migration. The most easy way to do is running the `migrate` command:
|
|
|
|
|
@@ -106,10 +118,12 @@ services:
|
|
|
|
|
- SYMFONY__ENV__DATABASE_NAME=wallabag
|
|
|
|
|
- SYMFONY__ENV__DATABASE_USER=wallabag
|
|
|
|
|
- SYMFONY__ENV__DATABASE_PASSWORD=wallapass
|
|
|
|
|
- SYMFONY__ENV__DATABASE_CHARSET=utf8mb4
|
|
|
|
|
- SYMFONY__ENV__MAILER_HOST=127.0.0.1
|
|
|
|
|
- SYMFONY__ENV__MAILER_USER=~
|
|
|
|
|
- SYMFONY__ENV__MAILER_PASSWORD=~
|
|
|
|
|
- SYMFONY__ENV__FROM_EMAIL=wallabag@example.com
|
|
|
|
|
- SYMFONY__ENV__DOMAIN_NAME=your-wallabag-url-instance.com
|
|
|
|
|
ports:
|
|
|
|
|
- "80"
|
|
|
|
|
volumes:
|
|
|
|
|
|