diff --git a/docker-compose.yml b/docker-compose.yml index c2aa66e..dae2e1b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,10 +1,24 @@ -GitlabCIMultiRunner: - image: digitallumberjack/docker-gitlab-ci-multi-runner:v11.9.0 - volumes: - - /srv/docker/gitlab-runner:/home/gitlab_ci_multi_runner/data - environment: - - CI_SERVER_URL= - - RUNNER_TOKEN= - - RUNNER_DESCRIPTION= - - RUNNER_EXECUTOR=shell - restart: always +version: '2' + +services: + runner_docker: + restart: always + image: local-grunner + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - /home/gitlab_ci_multi_runner/data + ports: + - 8000-8100:9000 + environment: + - CI_SERVER_URL=https://mydomaingitlab.com/ci + - RUNNER_TOKEN= + - RUNNER_DESCRIPTION="Docker runner" + - RUNNER_EXECUTOR=docker + - RUNNER_DOCKER_IMAGE=docker:latest + - RUNNER_DOCKER_MODE=socket + - RUNNER_AUTOUNREGISTER=true + - RUNNER_TAG_LIST=localtest + - REGISTER_RUN_UNTAGGED=false + - RUNNER_ADVERTISE_SESSION_ADDRESS=mydomain.com + - RUNNER_INTERNAL_SESSION_PORT=9000 +