Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Using docker to run MeowMeow

Andrewerr edited this page Jul 11, 2021 · 2 revisions

The MeowMeow webserver beta relases are automatically published on Docker Hub. Currently php-fpm or any other fastcgi module is not included, so you will need to ship your own.

Example of Dockerfile

Lets assume that you have written all neccessary configs and putted them in directory config and you have your files in directory www. In the root of your project,i.e. where you have config and www dirs you should put the Dockerfile:

FROM andrewerr/meowmeow-beta:1.02-prebeta-r11 # Lates tag does not work due to change of versioning system

WORKDIR / # Move to FS root
RUN mkdir -p /etc/MeowMeow/ # Create directory for configs
COPY config/routes.conf /etc/MeowMeow/routes.conf # Put routes configuration there
COPY config/meow.conf /etc/MeowMeow/meow.conf # Put main configuration
RUN cp -r /buildroot/_build/prod/rel/MeowMeow /MeowMeow # For more convnient debugging
COPY www /var/www # Put files to serve(you can change /var/www to any other directory in meow.conf)

# Tell docker how to run app
EXPOSE 80 # Allow access by HTTP
Clone this wiki locally