Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.42 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.42 KB

PHP Censor docker images

Web image (php-censor-web)

Web image stars Web image pulls

Worker image (php-censor-worker)

Worker image stars Worker image pulls

Description

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.

Docker compose

How to use

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

Requirements

Used docker-compose.yml v2.1, which requires:

  • Docker Engine v1.12+
  • Docker Compose v1.9+