diff --git a/templates/GitLab-Runner/0/docker-compose.yml b/templates/GitLab-Runner/0/docker-compose.yml index d01f5ac..793fe45 100644 --- a/templates/GitLab-Runner/0/docker-compose.yml +++ b/templates/GitLab-Runner/0/docker-compose.yml @@ -35,9 +35,8 @@ services: io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} {{- end}} traefik.enable: false - volumes: - - /var/run/docker.sock:/var/run/docker.sock - - /RancherCattle/${DATA_DIR}:/etc/gitlab-runner + volumes_from: + - gitlab-runner-config gitlab-runner: image: gitlab/gitlab-runner:alpine command: @@ -54,5 +53,6 @@ services: io.rancher.sidekicks: gitlab-runner-config traefik.enable: false restart: on-failure - volumes_from: - - gitlab-runner-config \ No newline at end of file + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /RancherCattle/${DATA_DIR}:/etc/gitlab-runner \ No newline at end of file