diff --git a/Dockerfile b/Dockerfile index f4a492db6..e8e94db8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM php:7.1.2-apache +FROM php:7.1.12-apache COPY /php/php.ini /usr/local/etc/php/ COPY /. /var/www/html/ RUN apt-get update && apt-get install -y \ diff --git a/README.md b/README.md index 7ad55808e..2b44f7fb9 100644 --- a/README.md +++ b/README.md @@ -33,13 +33,13 @@ Docker This fork includes a Dockerfile, to run Sentrifugo in a container. Visit my Docker Hub repository at https://hub.docker.com/r/gofaustino/sentrifugo -This Docker image needs an instance of MySQL or MariaDB available (may be running in another container, as long as they're linked). +This Docker image needs an instance of MySQL or MariaDB available. The Apache server is available on port 80 inside the container. -The Sentrifugo application folder is located at var/www/html. You need to copy its contents to a local folder, and create a volume linking both the container and local folders, otherwise your installation setup will be ephemeral. +The Sentrifugo application folder is located at var/www/html. -To get your container running, use the following run command as a guideline: +To get your container running, use the following run command as a guideline. If you don't need persistence for your settings / uploads / logs leave out the -v parameters: - docker run -d --name sentrifugo -p 80:80 -v /local_path_where_you_copied_sentrifugo_into:/var/www/html --link mariadb:mysql gofaustino/sentrifugo + docker run -d --name sentrifugo -p 80:80 -v /local_path_for_persistent_data:/var/www/html/public -v /local_path_for_logs:/var/www/html/logs --link mariadb:mysql gofaustino/sentrifugo Original README.MD