Dockerfile used to build a wallabag docker image.
I forked this from bobmaerten/docker-wallabag, and made several changes to accomodate MySQL as an option.
Wallabag is an opensource project created by @nicosomb
This docker image is build upon the baseimage made by phusion.
- This image will create a ready-to-go install of Wallabag that just needs to be configured by doing the last step of the web-based installer.
- You can choose SQLite or MySQL as an option for the database.
- MySQL is not included with this image so if you intend to use it you will need a linked or external SQL server.
- If you use SQLite you may want to store the database outside of the container so you can migrate it later if need be.
##Docker Base Image
This image is based on phusion/baseimage-docker
If you want to prefetch the image to store locally before deploying you should run the following:
docker pull neosar/wallabag-docker
To Run a Basic Instance
docker run -d -p 80:80 neosar/wallabag-docker
To Run a Named Instance Linked to a MySQL Container
docker run --name wallabag --link sqlcontainer:sqlcontainer -p 80:80 -d neosar/wallabag-docker
To Run a Named Instance with a Persistent SQLite Database
docker run --name wallabag -p 80:80 -v /path/to/your/storage:/wallabag/db -d neosar/wallabag-docker
To Pass a Custom Salt Value to the Config (Highly Recommended)
docker run --name wallabag -p 80:80 -e WALLABAG_SALT=somesaltvaluemuchmoresecurethanthis -d neosar/wallabag-docker
Check the phusion/baseimage documentation for all kind of additional options and switches.
- After installed you should be able to access it in the browser at the specified port.
- At this point you should select either a SQLite or MySQL database, and specify any necessary values.
- Set your login name and password.
- The installer will automatically remove the install folder after it completes, and bring you to the login page.
I have symlinked /wallabag to it's full path (/var/www/wallabag) and exposed it as a volume for easier access.
Building from Dockerfile
Clone Git Repository
Enter Repo Directory
sudo docker build -t docker-wallabag .