mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
22 lines
673 B
YAML
22 lines
673 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
|
|
|
|
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 |