Web image (php-censor-web)
Worker image (php-censor-worker)
Docker containers for PHP Censor with installed, configured source code
and dependencies, configurable by environment variables config.yml
. It has separated into two containers parts:
php-censor-web and php-censor-worker for better scalability.
You can use docker-compose file (docker-compose.yml
) that is described below to run a whole stack.
Default way with PostgreSQL database:
docker-compose -f docker-compose.yml up -d (--build)
Or if you want to use it with MySQL (MariaDB):
docker-compose -f docker-compose.mysql.yml up -d (--build)
If you want to up more worker just use this command, when the PHP Censor stack is already started (but you can do it on start):
docker-compose scale worker=4
Used docker-compose.yml
v2.1, which requires:
- Docker Engine v1.12+
- Docker Compose v1.9+