From 9c15c46c2aecb92132dd21f87894e5dd68b61274 Mon Sep 17 00:00:00 2001 From: William Miceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Wed, 21 Mar 2018 17:25:28 -0400 Subject: [PATCH] Gitlab catalog creation --- templates/gitlab-ce/0/docker-compose.yml | 16 ++++++++++++++++ templates/gitlab-ce/config.yml | 8 ++++++++ 2 files changed, 24 insertions(+) diff --git a/templates/gitlab-ce/0/docker-compose.yml b/templates/gitlab-ce/0/docker-compose.yml index e69de29..1de4503 100644 --- a/templates/gitlab-ce/0/docker-compose.yml +++ b/templates/gitlab-ce/0/docker-compose.yml @@ -0,0 +1,16 @@ +version: '2' +services: + gitlab-ce: + image: gitlab/gitlab-ce:latest + environment: + GITLAB_OMNIBUS_CONFIG: | + external_url ${EXTERNAL_URL} + hostname: ${HOSTNAME} + labels: + io.rancher.scheduler.affinity:host_label: ${HOST_LABEL_KEY}=${HOST_LABEL_VALUE} + restart: always + volumes: + - ${CONFIG_VOLUME}:/etc/gitlab:nocopy + - ${LOGS_VOLUME}:/var/lob/gitlab:nocopy + - ${DATA_VOLUME}:/var/opt/gitlab:nocopy +volumes_driver: rancher-nfs \ No newline at end of file diff --git a/templates/gitlab-ce/config.yml b/templates/gitlab-ce/config.yml index e69de29..ad2bcec 100644 --- a/templates/gitlab-ce/config.yml +++ b/templates/gitlab-ce/config.yml @@ -0,0 +1,8 @@ +name: Gitlab (Community Edition) +description: | + Will fill this in later. +version: latest +category: Versioning +maintainer: WilliamMiceli +license: +projectURL: https://hub.docker.com/r/gitlab/gitlab-ce/ \ No newline at end of file