Fix docker runner

This commit is contained in:
Wojciech Kozlowski 2018-01-25 23:08:30 +00:00
parent dcfb005785
commit 87d82c7983
2 changed files with 14 additions and 0 deletions

View File

@ -11,6 +11,8 @@ volumes:
letsencrypt_html:
runner_main_etc:
runner_main_home:
runner_docker_etc:
runner_docker_home:
services:
@ -159,6 +161,8 @@ services:
docker-dind:
container_name: docker-dind
image: docker:dind
volumes:
- ./runner/docker/hosts:/etc/hosts
privileged: true
restart: always
@ -168,4 +172,7 @@ services:
image: gitlab.wojciechkozlowski.eu:8443/wojtek/loki/runner-docker
links:
- docker-dind:docker
volumes:
- runner_docker_etc:/etc/gitlab-runner
- runner_docker_home:/home/gitlab-runner
restart: always

7
runner/docker/hosts Normal file
View File

@ -0,0 +1,7 @@
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.0.205 gitlab.wojciechkozlowski.eu