Commit 828e5e14 authored by Dave Lane's avatar Dave Lane

updates to get this working with a new nginx container. Now working for me

parent 4016b4f1
This [Docker Compose](https://docs.docker.com/compose/) recipe creates a set of 3 Docker containers which should let you run a very efficient [Grav](https://getgrav.org) website (or multiple sites).
It provides a container based on Debian Jessie running PHP 7.0 in FPM mode, with an Nginx container for serving it (you will need to have a reverse proxy to serve it and - I recommend - provide HTTPS support - I provide an example Nginx proxy configuration for this), and, for caching performance, an optional Redis container. Support for all of these is compiled into the PHP 7.0 container.
It provides a container based on Debian Stretch running the latest PHP (7.2 as of this edit) in FPM mode, with an Nginx container for serving it (you will need to have a reverse proxy to serve it and - I recommend - provide HTTPS support - I provide an example Nginx proxy configuration for this), and, for caching performance, an optional Redis container. Support for all of these is compiled into the PHP container.
## Quick restart
## Quick start
To quickly get underway, you should be able to copy the sample docker-compose.yml-sample to docker-compose.yml
`cp docker-compose.yml-sample docker-compose.yml`
and edit the tokens (marked with []) to suit your setup.
Then you can get started with `docker-compose up -d && docker-compose logs -f`... if you want to log out, use CTRL-C to exit the log stream. Your containers should continue running.
......@@ -22,7 +22,7 @@ services:
aliases:
- [grav.local]
nginx:
image: oeru/nginx-jessie
image: kiwilightweight/nginx-grav
links:
- app
- redis
......
......@@ -8,14 +8,15 @@ ENV DEBIAN_FRONTEND="noninteractive"
# Install PHP extensions
RUN apt-get update && apt-get install -y apt-utils git less libbz2-dev libc-client-dev \
libcurl4-gnutls-dev libicu-dev libkrb5-dev libmcrypt-dev libpng-dev \
libpspell-dev libssl-dev libxml2-dev telnet unzip zip
libpspell-dev libssl-dev libxml2-dev mariadb-client telnet unzip zip
RUN apt-get install -y net-tools vim dnsutils
# install cron and msmtp for outgoing email
RUN apt-get install -y cron msmtp sudo
RUN apt-get install -y --no-install-recommends libpq-dev
RUN docker-php-ext-configure imap --with-imap --with-imap-ssl --with-kerberos
# RUN docker-php-ext-install bz2 curl imap intl mbstring mcrypt \
RUN docker-php-ext-install bz2 curl imap intl mbstring \
pspell opcache soap xmlrpc zip
pspell opcache pdo pdo_mysql pdo_pgsql pspell soap xmlrpc zip
# install PHPRedis
ENV PHPREDIS_VERSION 4.1.1
......@@ -33,8 +34,6 @@ RUN apt-get update && apt-get install -y \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
<<<<<<< HEAD
=======
# && docker-php-ext-install -j$(nproc) iconv mcrypt \
&& docker-php-ext-install -j$(nproc) iconv \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment