Docker
Run wallabag in docker-compose
This document describes how to use Docker for wallabag development purposes. For running wallabag in production, please use the official docker-compose configuration provided.
To run your own development instance of wallabag, you can use the pre-configured docker compose files provided in the wallabag repository.
Requirements
Make sure to have Docker and Docker Compose available on your system and up to date.
Switch DBMS
By default, wallabag starts with a SQLite database. However, wallabag also supports PostgreSQL and MySQL. Docker containers are available for both.
In docker-compose.yml
, for the chosen DBMS uncomment:
- the container definition (
postgres
ormariadb
root level block) - the container link in the
php
container - the container env file in the
php
container
In order to keep running Symfony commands on your host (such as
wallabag:install
), you also should:
- source the proper env files on your command line, so variables like
SYMFONY__ENV__DATABASE_HOST
will exist. - create a
127.0.0.1 rdbms
on your systemhosts
file
Run wallabag
- Fork and clone the project
- Edit
app/config/parameters.yml
to replacedatabase_*
properties with commented ones (with values prefixed byenv.
) composer install
the project dependenciesphp bin/console wallabag:install
to create the schemadocker-compose up
to run the containers- Finally, browse to http://localhost:8080/ to find your freshly installed wallabag.
At various step, you’ll probably run into UNIX permission problems, bad paths in generated cache, etc… Operations like removing cache files or changing files owners might be frequently required, so don’t be afraid!