Update docker-compose.yml to add 'dind' (#1655)

Add 'dind' image to run docker-in-docker: issue https://github.com/laradock/laradock/issues/1653
This commit is contained in:
vlauciani 2018-06-28 07:25:33 +02:00 committed by Shao Yu-Lung (Allen)
parent b0bfa5f1d3
commit 9d42ea6b9d
1 changed files with 12 additions and 0 deletions

View File

@ -150,10 +150,13 @@ services:
- "dockerhost:${DOCKER_HOST_IP}"
environment:
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
- DOCKER_HOST=tcp://docker-in-docker:2375
depends_on:
- workspace
networks:
- backend
links:
- docker-in-docker
### PHP Worker ############################################
php-worker:
@ -715,6 +718,15 @@ services:
ports:
- 9010:9000
### Docker-in-Docker ################################################
docker-in-docker:
image: docker:dind
privileged: true
volumes:
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
expose:
- 2375
### NetData ################################################
netdata:
image: titpetric/netdata:latest