Changed what container owns the volumes

This commit is contained in:
WilliamMiceli
2019-03-12 14:13:46 -04:00
parent 0a76545715
commit 3554e82bf5

View File

@@ -35,9 +35,8 @@ services:
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}} {{- end}}
traefik.enable: false traefik.enable: false
volumes: volumes_from:
- /var/run/docker.sock:/var/run/docker.sock - gitlab-runner-config
- /RancherCattle/${DATA_DIR}:/etc/gitlab-runner
gitlab-runner: gitlab-runner:
image: gitlab/gitlab-runner:alpine image: gitlab/gitlab-runner:alpine
command: command:
@@ -54,5 +53,6 @@ services:
io.rancher.sidekicks: gitlab-runner-config io.rancher.sidekicks: gitlab-runner-config
traefik.enable: false traefik.enable: false
restart: on-failure restart: on-failure
volumes_from: volumes:
- gitlab-runner-config - /var/run/docker.sock:/var/run/docker.sock
- /RancherCattle/${DATA_DIR}:/etc/gitlab-runner