Starter for a dockerized Slim Framework application
Create a new project from this starter with
$ composer create-project kreait/slim-docker target-directory
The actual Slim Framework application will be located in
Then, start up the dockerized application:
$ cd target-directory
$ docker-compose up
The images for the application containers are built from the Dockerfiles in
docker directory so that you can modify them as needed for your
- The backend image extends the official
- The frontend image extends the official
The starter includes a Makefile to simplify the basic tasks:
make buildbuilds new Docker images with the current project files being copied into the images.
make up-devwill add the settings from
dev.ymlto the default configuration and start the application with the
webdirectory being mounted into the containers.
make up-prodwill add the settings from
prod.ymlto the default configuration and start the application
make downwill stop the application
make help from the project root to show all available tasks.