Browse Source

wip gitlab

Guilhem Saurel 6 years ago
parent
commit
46ad6e25ae
2 changed files with 28 additions and 0 deletions
  1. 5 0
      gitlab/README.md
  2. 23 0
      gitlab/docker-compose.yml

+ 5 - 0
gitlab/README.md

@@ -0,0 +1,5 @@
+# WIP gitlab
+
+Ce service est utilisé en production, mais dans une autre configuration.
+
+La version présente ici n’est pas foncitonnelle.

+ 23 - 0
gitlab/docker-compose.yml

@@ -0,0 +1,23 @@
+version: '3'
+
+networks:
+  web:
+    external: true
+
+services:
+  app:
+    image: gitlab/gitlab-ce:11.4.5-ce.0
+    restart: unless-stopped
+    volumes:
+      - ${CHATONS_ROOT_DIR:-/srv/chatons}/gitlab/app/data:/var/opt/gitlab
+      - ${CHATONS_ROOT_DIR:-/srv/chatons}/gitlab/app/config:/etc/gitlab
+      - ${CHATONS_ROOT_DIR:-/srv/chatons}/gitlab/app/logs:/var/log/gitlab
+    ports:
+      - "2222:22"
+      - "4567:4567"
+    labels:
+      traefik.enable: "true"
+      traefik.frontend.rule: "Host: gitlab.${CHATONS_DOMAIN:-localhost}, www.gitlab.${CHATONS_DOMAIN:-localhost}"
+      traefik.port: 80
+    networks:
+      - web