From 1a120274e9d56011f9c7ae6d7c220044c549790c Mon Sep 17 00:00:00 2001 From: Viswamedha Nalabotu Date: Wed, 17 Dec 2025 16:27:19 +0000 Subject: [PATCH] Added gitlab runner process --- compose/prod/docker-compose.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/compose/prod/docker-compose.yml b/compose/prod/docker-compose.yml index 5e0d8f3..a42e591 100644 --- a/compose/prod/docker-compose.yml +++ b/compose/prod/docker-compose.yml @@ -38,6 +38,30 @@ services: volumes: - "/var/run/docker.sock:/var/run/docker.sock" + fyp-runner: + image: gitlab/gitlab-runner:${GITLAB_RUNNER_IMAGE_TAG} + restart: unless-stopped + environment: + - CI_SERVER_URL=${GITLAB_SERVER_URL} + - REGISTRATION_TOKEN=${GITLAB_RUNNER_REGISTRATION_TOKEN} + - RUNNER_NAME=${GITLAB_RUNNER_NAME} + - RUNNER_TAG_LIST=${GITLAB_RUNNER_TAGS} + - RUNNER_EXECUTOR=docker + - DOCKER_TLS_CERTDIR= + - DOCKER_IMAGE=${GITLAB_RUNNER_DOCKER_IMAGE} + volumes: + - gitlab-runner-config:/etc/gitlab-runner + - gitlab-machine-config:/root/.docker/machine + - /var/run/docker.sock:/var/run/docker.sock + command: + - run + - "--working-directory=/home/gitlab-runner" + - "--user=gitlab-runner" + networks: proxy: - external: true \ No newline at end of file + external: true + +volumes: + gitlab-runner-config: + gitlab-machine-config: \ No newline at end of file