Skip to content

Commit 9d42ea6

Browse files
vlaucianibestlong
authored andcommitted
Update docker-compose.yml to add 'dind' (laradock#1655)
Add 'dind' image to run docker-in-docker: issue laradock#1653
1 parent b0bfa5f commit 9d42ea6

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,13 @@ services:
150150
- "dockerhost:${DOCKER_HOST_IP}"
151151
environment:
152152
- PHP_IDE_CONFIG=${PHP_IDE_CONFIG}
153+
- DOCKER_HOST=tcp://docker-in-docker:2375
153154
depends_on:
154155
- workspace
155156
networks:
156157
- backend
158+
links:
159+
- docker-in-docker
157160

158161
### PHP Worker ############################################
159162
php-worker:
@@ -715,6 +718,15 @@ services:
715718
ports:
716719
- 9010:9000
717720

721+
### Docker-in-Docker ################################################
722+
docker-in-docker:
723+
image: docker:dind
724+
privileged: true
725+
volumes:
726+
- ${APP_CODE_PATH_HOST}:${APP_CODE_PATH_CONTAINER}
727+
expose:
728+
- 2375
729+
718730
### NetData ################################################
719731
netdata:
720732
image: titpetric/netdata:latest

0 commit comments

Comments
 (0)