kreait / slim-docker
Starter for a dockerized Slim Framework application
Installs: 875
Dependents: 0
Suggesters: 0
Security: 0
Stars: 27
Watchers: 5
Forks: 9
Open Issues: 0
Language:Makefile
pkg:composer/kreait/slim-docker
This package is auto-updated.
Last update: 2023-02-05 14:50:45 UTC
README
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
$ composer create-project kreait/slim-docker target-directory
The actual Slim Framework application will be located in target-directory/web.
Then, start up the dockerized application:
$ cd target-directory
$ docker-compose up
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-fpmimage. - The frontend image extends the official
nginximage.
Helpers
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 fromdev.ymlto the default configuration and start the application with thewebdirectory being mounted into the containers.make up-prodwill add the settings fromprod.ymlto the default configuration and start the applicationmake downwill stop the application
Execute make or make help from the project root to show all available tasks.