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:
parent
b0bfa5f1d3
commit
9d42ea6b9d
@ -150,10 +150,13 @@ services:
|
|||||||
- "dockerhost:${DOCKER_HOST_IP}"
|
- "dockerhost:${DOCKER_HOST_IP}"
|
||||||
environment:
|
environment:
|
||||||
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
|
||||||
|
- DOCKER_HOST=tcp://docker-in-docker:2375
|
||||||
depends_on:
|
depends_on:
|
||||||
- workspace
|
- workspace
|
||||||
networks:
|
networks:
|
||||||
- backend
|
- backend
|
||||||
|
links:
|
||||||
|
- docker-in-docker
|
||||||
|
|
||||||
### PHP Worker ############################################
|
### PHP Worker ############################################
|
||||||
php-worker:
|
php-worker:
|
||||||
@ -715,6 +718,15 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 9010:9000
|
- 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 ################################################
|
||||||
netdata:
|
netdata:
|
||||||
image: titpetric/netdata:latest
|
image: titpetric/netdata:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user