chales / docker

Docker development environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker development environment

Description

This project provides a convenient docker development environment.
It comes preconfigured with the following container services:

  • nginx
  • php
  • redis
  • mongodb
  • elasticsearch

Setup

Requirements

Program Version
docker 1.10+
docker-compose 1.6+

Secrets generation

See SECRETS for the secrets generation.

Source the environment variables and command aliases:

. .env

Build the docker development images:

app-build-docker-images

Create the web directory:

mkdir -p ../web

Start the development environment:

docker-compose up -d

Update the hosts file with the development hostname:

app-hostnames

Open the development website:

open https://dev.test/

Use aliases to execute commands in docker containers:

php --version

phpunit --version

composer --version

redis-cli --version

mongo --version

mongorestore --version

mongodump --version

Command Working directory

The working directory for a binary is set to that of its container, e.g. /srv/www for the php container and its php binaries.
As a result, we have to take this working directory into account, e.g.:

composer status -d dev.test

License

Released under the MIT license.

Author

Sebastian Tschan

About

Docker development environment


Languages

Language:Shell 100.0%