Download the PHP package kreait/slim-docker without Composer
On this page you can find all versions of the php package kreait/slim-docker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kreait/slim-docker
More information about kreait/slim-docker
Files in kreait/slim-docker
Package slim-docker
Short Description Starter for a dockerized Slim Framework application
License MIT
Homepage https://github.com/kreait/slim-php-docker-starter
Informations about the package slim-docker
Slim Framework Skeleton for Docker
A dockerized Slim Framework skeleton application as a starting point for new Slim Framework projects.
Requirements
- Docker Engine and Docker Compose
- Composer installed in your global path
Installation
Create a new project from this starter with
The actual Slim Framework application will be located in target-directory/web
.
Then, start up the dockerized application:
Images and Containers
The images for the application containers are built from the Dockerfiles in
the docker
directory so that you can modify them as needed for your
application.
- The backend image extends the official
php-fpm
image. - The frontend image extends the official
nginx
image.
Helpers
The starter includes a Makefile to simplify the basic tasks:
make build
builds new Docker images with the current project files being copied into the images.make up-dev
will add the settings fromdev.yml
to the default configuration and start the application with theweb
directory being mounted into the containers.make up-prod
will add the settings fromprod.yml
to the default configuration and start the applicationmake down
will stop the application
Execute make
or make help
from the project root to show all available tasks.