|
|
|
|
@ -18,13 +18,15 @@ Default login is `wallabag:wallabag`.
|
|
|
|
|
- `-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_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_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_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_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)
|
|
|
|
|
@ -44,7 +46,7 @@ $ docker run -p 80:80 wallabag/wallabag
|
|
|
|
|
and point your browser to `http://localhost:80`. 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 wallabag/wallabag
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## MariaDB / MySQL
|
|
|
|
|
@ -53,7 +55,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
|
|
|
|
|
@ -62,7 +64,7 @@ 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 --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" -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_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
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Redis
|
|
|
|
|
@ -105,6 +107,7 @@ 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=~
|
|
|
|
|
|