Docker > use images (instead of Dockerfiles)

This commit is contained in:
Meritoo
2019-05-30 21:43:06 +02:00
parent b482d814e4
commit 538aa1fa79
6 changed files with 9 additions and 159 deletions

View File

@@ -5,29 +5,27 @@ services:
# Required to run project
#
php:
image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php
image: meritoo/php7
container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-php
entrypoint: php
command: -S 0.0.0.0:9999
build:
context: ./docker/config
args:
- TIMEZONE=${TIMEZONE}
environment:
TIMEZONE: ${TIMEZONE}
volumes:
- .:/project:cached
- .:/var/www/application:cached
composer:
image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php
image: meritoo/php7
container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-composer
entrypoint: php -d memory_limit=-1 /usr/local/bin/composer
volumes:
- .:/project:cached
- .:/var/www/application:cached
#
# Required to run PHPUnit's tests
#
phpunit:
image: ${DOCKER_CONTAINER_OWNER}/${DOCKER_CONTAINER_PROJECT}-php
image: meritoo/php7
container_name: ${DOCKER_CONTAINER_OWNER}-${DOCKER_CONTAINER_PROJECT}-phpunit
entrypoint: ./vendor/bin/phpunit
command: --version
volumes:
- .:/project:cached
- .:/var/www/application:cached