Docker - OpenCATS Installation Instructions
##Docker
These instructions are for the Docker environment only. Download and install the following software:
Docker and Docker ToolBox
for MAC OSX https://docs.docker.com/engine/installation/mac/
##Architecture
OpenCATS is installed in container without database. Database in in extra container. Optinaly it is also possible to create container with phpmyadmin to manage mysql database.
##Dockerfile
OpenCats docker file is based on php 7.2 docker image All dependencies are installed into the image.
##docker-compose.yml
To build / install all images, it is possible to write docker-compose.yml
file containg all containers definitions. Example of docker-compose.yml
Database server name for configuration is mysql
, cats-dev database is created automaticaly with user cats
and password password
. phpmyadmin is listening on port 8080
, opencats on port 80
.
To build images:
to start images:
When image running, it is necessary to initialize DB schema and configure openCATS. Steps are described in [Install on Windows Tutorial]
#Using docker for development
It is possible to run opencats also in development mode, when sources are on host computer and web server is in docker. Slightly modified Dockerfile (php environment with pre-installed libraries) and docker-compose.yml is necessary
and docker-compose.yml` (web part])
It mounts your local .
directory as /var/www/html
inside the container
###Notes for windows users
sources must be in user profiles directory, for example in Documents. This is docker limitation
Files shall usu LF EOL (not CRLF) because sources dir on windows partition is mounted under Linux file system.
Last updated