Skip to content
Snippets Groups Projects
docker-compose.yml 867 B
Newer Older
---
version: '3.7'
services:
  runner:
    build:
nimrod's avatar
nimrod committed
      context: runner/
    environment:
      CI_SERVER_URL: "${CI_SERVER_URL:-https://git.shore.co.il}"
nimrod's avatar
nimrod committed
      DOCKER_IMAGE: registry.shore.co.il/ci-images:docker
nimrod's avatar
nimrod committed
      DOCKER_NETWORK_MODE: &network gitlab-runner
      REGISTRATION_TOKEN: "${GITLAB_REGISTRATION_TOKEN}"
      RUNNER_NAME: "${RUNNER_NAME}"
nimrod's avatar
nimrod committed
      REGISTER_RUN_UNTAGGED: "${RUN_UNTAGGED:-true}"
nimrod's avatar
nimrod committed
      RUNNER_TAG_LIST: "${RUNNER_NAME}"
nimrod's avatar
nimrod committed
    image: registry.shore.co.il/gitlab-runner
    restart: always
    volumes:
nimrod's avatar
nimrod committed
      - "${BUILDS:-builds}:/builds"
      - config:/etc/gitlab-runner
      - /var/run/docker.sock:/var/run/docker.sock
nimrod's avatar
nimrod committed
  crond:
    build:
      context: crond/
nimrod's avatar
nimrod committed
    image: registry.shore.co.il/gitlab-runner-cron
nimrod's avatar
nimrod committed
    volumes:
      - /run/docker.sock:/run/docker.sock
nimrod's avatar
nimrod committed
  builds:
  config:

networks:
  default:
nimrod's avatar
nimrod committed
    name: *network