mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-06 15:28:58 +01:00
- added ENV variable for using custom runtime folder - create assets directory before using asset-manager
24 lines
729 B
YAML
24 lines
729 B
YAML
version: '2'
|
|
services:
|
|
|
|
php:
|
|
build: ..
|
|
working_dir: /project
|
|
volumes:
|
|
- ../tests/data/config-docker.php:/project/tests/data/config.php
|
|
# Enable for debugging, enabling tests might be slow for file access (data) on host-volume
|
|
#- ../tests:/project/tests
|
|
# - ../framework:/project/framework
|
|
# Tmpfs volume (experimental, asset tests may fail)
|
|
#tmpfs:
|
|
# - /project/tests/runtime
|
|
environment:
|
|
- TEST_RUNTIME_PATH=/tmp/runtime
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
# prevent overlapping/duplicated networks, since docker assigns /16 subnets by default ranging from 10.x over 172.x to 192.168.x
|
|
- subnet: 10.100.1${TUPLE_C}.1/24 |