Add gitlab runner container

This commit is contained in:
sonny 2023-03-04 20:35:36 +01:00
parent ae90907e4e
commit f4caae7d1c
2 changed files with 14 additions and 0 deletions

View file

@ -29,3 +29,16 @@ services:
- '$GITLAB_HOME/logs:/var/log/gitlab' - '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab' - '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m' shm_size: '256m'
runner:
image: 'gitlab/gitlab-runner:{{ runner_image_tag }}'
restart: unless-stopped
environment:
CI_SERVER_URL: "https://{{ hostname }}"
depends_on:
- web
volumes:
- gitlab-runner-config:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
volumes:
gitlab-runner-config:

View file

@ -1,6 +1,7 @@
hostname: 'git.fudiggity.nl' hostname: 'git.fudiggity.nl'
image_tag: '15.6.1-ee.0' image_tag: '15.6.1-ee.0'
runner_image_tag: 'v15.6.1'
app_dir: '/srv/docker/gitlab' app_dir: '/srv/docker/gitlab'
gitlab_home: '{{ ansible_env.HOME }}/vm/gitlab' gitlab_home: '{{ ansible_env.HOME }}/vm/gitlab'