Docker compose environment for Pimcore
Clone or download
BlackIkeEagle add info about the install-pimcore helper and change the default pass…
…word

Signed-off-by: BlackEagle <ike.devolder@gmail.com>
Latest commit 69e0c2b Jan 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin add info about the install-pimcore helper and change the default pass… Jan 10, 2019
.env-sample
.gitignore
LICENSE.md
README.md add info about the install-pimcore helper and change the default pass… Jan 10, 2019
docker-compose-dinghy.yml switch from mailcatcher to mailhog Nov 15, 2018
docker-compose.yml
environment allow use of numbers in sessionname Nov 7, 2018

README.md

Pimcore compose environment

Dockerwest Compose Environment for Pimcore.

For detailed documentation, visit our website

When using Pimcore 5, please use the "pimcore5" branch!

Usage

For your convenience the developer environment has some helpers which take away some difficulties you could experience using docker containers.

If you want this easy helpers to be readily available for you you can use environment before you start. environment allows you to start your environment with an updated PATH and allows you to choose between tmux, screen or byobu. You can also define a default in the .env file.

explicit setting the window manager:

$ ./environment [tmux|screen|byobu]

using default window manager, defined in .env

$ ./environment

When you are running in this environment all helpers are available in your path.

You are not required to use the environent, but then you have to call the helpers with their full path.

To make use of the helpers you should use the run wrapper for docker-compose.

$ run up

Configuration

There is a sample configuration .env-sample which contains the defaults used in this environment.

If you want to change some of these values, copy .env-sample to .env and start editing.

default .env-sample

C_UID=1000
C_GID=1000
PHPVERSION=7.1
NGINXVERSION=stable
PIMCOREVERSION=5
BASEHOST=pimcore.docker
MYSQL_ROOT_PASSWORD=toor
APPLICATION=../pimcore
DEVELOPMENT=1
WINDOW_MANAGER=tmux
C_UID / C_GID

Configure what UID and GID your PHP container must use. This usually should match your Hosts UID and GID. To find your local UID you can run id -u and to find your local GID you can run id -g.

PHPVERSION

Choose your PHP version. To see which versions are available here.

NGINXVERSION

Choose what version of Nginx you want. To see which versions are available see here

PIMCOREVERSION

Choose the version of pimcore you are going to use. The nginx configuration is slightly different between version 4 and version 5.

BASEHOST

This setting defines what the hostname will be you can browse your pimcore app. The example configuration will be give you http://pimcore.docker.

MYSQL_ROOT_PASSWORD

Choose whatever you want to use as default root password.

APPLICATION

A relative or absolute path to your pimcore code. this can be a checkout of pimcore.

DEVELOPMENT

There is the DEVELOPMENT environment variable wich will enable xdebug, composer and enable timestamp checking in opcache.

When DEVELOPMENT is enabled xdebug should work out of the box. When you have issues - like while running docker for mac - you can set the extra environment variable XDEBUG_CONFIG with your hosts ip in it so xdebug can properly connect back.

WINDOW_MANAGER

Set the default window manager when running the environment. Available options are: tmux, screen and byobu

Helpers

The helpers are written in python, so you should have python2 or python3 installed on your system to be able to use them. Most Linux distributions and macOS have python already installed so there should be no issue there. There are no extra dependencies on python modules.

For detailed information on helpers, see our website

install-pimcore

This will run the pimcore installation create a default admin login user. The admin user is admin and the password is DockerWest123!. The admin endpoint will be found under /admin.

License

MIT License (MIT). See License File for more information.