rakshazi/slim-skeleton

There is no license information available for the latest version (1.1.3) of this package.

1.1.3 2017-07-25 10:27 UTC

This package is auto-updated.

Last update: 2024-12-13 22:05:54 UTC


README

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
  2. 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

Docker - which image to choose?

rakshazi/slim-skeleton (Dockerfile)

@deprecated: that file will be removed in future, but you still can use it

Must be used for development only. Includes composer with dependencies in it. composer update runs on container start

quay.io/rakshazi/slim-skeleton (Dockerfile.quay)

Full-featured image without composer and its dependencies. composer update should be run on build stage.

Example of Dockerfile for your usage (if you dont want to build base image yourself):

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