Dockerimage requested by Csaeum
###Docker-compose
Provide appropriate values in docker-compose.yml and run
docker-compose up
in the project root directory.\
###Environment Variables
DB_NAME
default: db
Name of the Database which is initially created.
DB_ADMIN_USER
default: admin
Username of the Adminuser which is initially created.
DB_ADMIN_PASSWORD
default: admin
Password of the Adminuser which is initially created.
DB_ROOT_PASSWORD
default: root
Password of the root-user.
###MountPoints /apps/document_root is apache2's documentRoot. /apps/mysql is mysql's data directory.
###Recommendation First create two docker volumes.\
docker volume create mysql && docker volume create document_root
Than get their Mountpoint.\
docker volume inspect mysql | grep Mountpoint && docker volume inspect document_root | grep Mountpoint
[OPTIONAL] Create the symlinks.\
<MOUNTPOINT>
= the mountpoint from last command
<DIRECTORY>
= the symlink, it can be whereever you want\
ln -s <MOUNTPOINT> <DIRECTORY>
Now we can start the container.\
docker run -P -v document_root:/apps/document_root -v mysql:/var/lib/mysql/ <TAG>
\
Where <TAG>
is the tag you provided by building the image.
Build the image using\
docker build --tag <TAG> <DOCKERFILE>
\
Where <TAG>
is the tag you want to use (<NAME>:<VERSION>
) and
<DOCKERFILE>
is the path of the dockerfile.
Supervisor is the mainprocess which starts, tracks and gracefully stops all services, configured in supervisord.conf.
Version: 8.0.21
Datadirectory: /apps/mysql
Version: 2.4.6
Verison: 2.4.29
DocumentRootDirectory: /apps/document_root
Version: 1.5.6
Version: 7.4.10