Guilhem Saurel il y a 6 ans
Parent
commit
851932bdee
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      gitlab/docker-compose.yml

+ 6 - 1
gitlab/docker-compose.yml

@@ -8,6 +8,11 @@ services:
   app:
     image: gitlab/gitlab-ce:11.4.5-ce.0
     restart: unless-stopped
+    hostname: 'git.${CHATONS_DOMAIN:-localhost}' # required by gitlab
+    environment:
+      - GITLAB_OMNIBUS_CONFIG |
+        external_url 'http://gitlab.${CHATONS_DOMAIN:-localhost}'
+        registry_external_url 'https://gitlab.${CHATONS_DOMAIN:-localhost}:4567'
     volumes:
       - ${CHATONS_ROOT_DIR:-/srv/chatons}/gitlab/app/data:/var/opt/gitlab
       - ${CHATONS_ROOT_DIR:-/srv/chatons}/gitlab/app/config:/etc/gitlab
@@ -18,6 +23,6 @@ services:
     labels:
       traefik.enable: "true"
       traefik.frontend.rule: "Host: gitlab.${CHATONS_DOMAIN:-localhost}, www.gitlab.${CHATONS_DOMAIN:-localhost}"
-      traefik.port: 80
+      traefik.port: "80"
     networks:
       - web