Code Monkey home page Code Monkey logo

silverstripe-docker's Introduction

Silverstripe 4 starter project with Docker

Repos

Port Map

Service Internal External
Mailhog SMTP 1025
Mailhog Webinterface 8025 8025
MySQL 3306 3306
Nginx 80 80
PHP 9000

Quickstart

$ cp .env.example .env
$ docker-compose build
$ bin/composer install
$ docker-compose up

Open http://localhost with your browser

Usage

Composer

$ bin/composer 

Docker Compose

# Build
$ docker-compose build

# Start
$ docker-compose up

# Stop
$ docker-compose down

Docker Images

# Network
docker network create silverstripe

# PHP
docker run -d --rm \
    --name silverstripe_php \
    --net silverstripe \
    --net-alias php \
    -e PHP_DATE_TIMEZONE=Europe/Berlin \
    -e SS_DATABASE_SERVER=mysql.example.com \
    -e SS_DATABASE_USERNAME=silverstripe \
    -e SS_DATABASE_PASSWORD=silverstripe \
    -e SS_DATABASE_NAME=silverstripe \
    -v /path_to_your_silverstripe_project/:/srv/silverstripe/:rw,cached \
    derdiggn/silverstripe-docker:4-php-latest

# NGINX
docker run -d --rm \
    --name silverstripe_nginx \
    --net silverstripe \
    -p 80:80 \
    -v /path_to_your_silverstripe_project/public/assets:/srv/silverstripe/public/assets:ro \
    derdiggn/silverstripe-docker:4-nginx-latest

Enviroment Variables

Example: https://github.com/derdiggn/silverstripe-docker/blob/master/.env.example

Silverstripe Core

see https://docs.silverstripe.org/en/4/getting_started/environment_management/#core-environment-variables

Custom

PHP

PHP_DATE_TIMEZONE=Europe/Berlin
PHP_POST_MAX_SIZE=6M
PHP_UPLOAD_MAX_FILESIZE=5M

Silvrstripe

SS_SMTP_HOST=mailhog
SS_SMTP_PORT=1025
SS_SMTP_ENCYPTION=
SS_SMTP_USERNAME=
SS_SMTP_PASSWORD=
SS_SMTP_AUTH_MODE=

silverstripe-docker's People

Contributors

dependabot-preview[bot] avatar derdiggn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.