Install
Project
composer create-project rakshazi/slim-skeleton
Docker
NOTE: this docker image is production ready and works only with SSL for production and with SSL and without it for dev env., (*1)
- Change
your.site domain in docker-compose.yml and docker-compose-prod.yml to your domain
- Run docker-compose:
#For development
docker-compose up
#For production
docker-compose -f docker-compose-prod.yml up -d
Composer dependencies, migrations, and DB will be created automaticaly, (*2)
Docker - which image to choose?
rakshazi/slim-skeleton (Dockerfile)
@deprecated: that file will be removed in future, but you still can use it, (*3)
Must be used for development only. Includes composer with dependencies in it. composer update runs on container start, (*4)
quay.io/rakshazi/slim-skeleton (Dockerfile.quay)
Full-featured image without composer and its dependencies. composer update should be run on build stage., (*5)
Example of Dockerfile for your usage (if you dont want to build base image yourself):, (*6)
FROM composer/composer:alpine
COPY ./ /app
RUN composer update --ignore-platform-reqs --no-ansi --no-dev \
--no-interaction --no-progress --no-scripts --optimize-autoloader \
-d /app
FROM quay.io/rakshazi/slim-skeleton
MAINTAINER Your Name <your.name@your.site>
COPY --from=0 /app/ /var/www/
Documentation
Backend
Frontend