mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
Docker > name of containers > use custom suffix
Docker > the "composer" service
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# Docker
|
||||
### Docker
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
#
|
||||
# All containers
|
||||
#
|
||||
DOCKER_CONTAINER_PREFIX=__ENTER__CONTAINER__PREFIX__
|
||||
DOCKER_CONTAINER_OWNER=__ENTER__OWNER__NAME__
|
||||
DOCKER_CONTAINER_PROJECT=__ENTER__PROJECT__NAME__
|
||||
|
||||
#
|
||||
# PHP configuration:
|
||||
|
||||
@@ -2,8 +2,8 @@ version: '3'
|
||||
|
||||
services:
|
||||
php-cli:
|
||||
image: meritoo/common-library
|
||||
container_name: ${DOCKER_CONTAINER_PREFIX}
|
||||
image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php-cli
|
||||
container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-php-cli
|
||||
working_dir: /project
|
||||
entrypoint: php
|
||||
command: -S 0.0.0.0:9999
|
||||
@@ -13,3 +13,10 @@ services:
|
||||
- TIMEZONE=$TIMEZONE
|
||||
volumes:
|
||||
- .:/project
|
||||
composer:
|
||||
image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php-cli
|
||||
container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-composer
|
||||
working_dir: /project
|
||||
command: composer
|
||||
volumes:
|
||||
- .:/project
|
||||
|
||||
Reference in New Issue
Block a user