Add gitlab-runner in docker-swarm mode
How add gitlab runner to gitlab in swarm mode(fuck kubernetes). In this example version docker 19.03.2 Create docker-compose.yml sudo mkdir -p /docker-compose/SWARM/gitlab-runner cd /docker-compose/SWARM/gitlab-runner vim docker-compose.yml Add data version: '3.7' services: gitlab-runner: image: gitlab/gitlab-runner:ubuntu-v14.4.0 restart: always volumes: – '/var/run/docker.sock:/var/run/docker.sock' – './configs/gitlab-runner:/etc/gitlab-runner' networks: gitlab-runner: aliases: – gitlab-runner environment: DEBUG: 'True' deploy: replicas: 1 resources: reservations: #cpus: […]