How to run with Docker

You are here:

Run with Docker

Assuming you already have docker up and running in your computer, copy/paste the following in a terminal:

docker run --name PV2 -p 8080:80 \
-v $(pwd)/config:/config \
-v $(pwd)/db:/var/lib/mysql \
-v $(pwd)/uploads:/var/www/html/uploads \

Then point your browser to:


Please Note: When you run for first time, a local directory will be automatically created, holding config files, db schema and uploaded by user files.

If you’re using a Red Hat (CentOS, RHEL, Fedora, etc) based distribution with an SELinux Enforcing policy add :z to line with volumes like so:

-v $(pwd)/config/:/config/:z \
-v $(pwd)/db/:/var/lib/mysql/:z \
-v $(pwd)/uploads/:/var/www/html/uploads/:z \

Build your own image

If you wish to build your own Docker image, you can find the source code here

Table of Contents