Docker - name of containers - use custom prefix

This commit is contained in:
Meritoo
2017-12-22 10:44:07 +01:00
parent ebbed4825c
commit 7f713e0c6e
2 changed files with 14 additions and 1 deletions

View File

@@ -1 +1,14 @@
# -----------------------------------------------------------------------------
# Docker
# -----------------------------------------------------------------------------
#
# All containers
#
DOCKER_CONTAINER_PREFIX=__ENTER__CONTAINER__PREFIX__
#
# PHP configuration:
# - timezone
#
TIMEZONE=Europe/Warsaw

View File

@@ -3,7 +3,7 @@ version: '3'
services:
php-cli:
image: meritoo/common-library
container_name: meritoo-common-library
container_name: ${DOCKER_CONTAINER_PREFIX}
working_dir: /project
entrypoint: php
command: -S 0.0.0.0:9999