Gitlab on Synology with Docker

I’m trying to install and setup GitLab on a Synology server. My issue is when I go to the GitLab page, I need to request a new password in order to activate my account (stupid idea). I set all the needed environment variables on the docker-compose.yml I checked all the logs and nothing inform me that something is wrong. However I never receive the email confirmation… Please help!

Here is my complete docker-compose.yml :

version: '2'

services:  
  redis:
    restart: always
    image: sameersbn/redis:latest
    container_name: gitlab-redis
    command:
    - --loglevel warning
    volumes:
    - /volume1/docker/gitlab/redis:/var/lib/redis

  postgresql:
    restart: always
    image: sameersbn/postgresql:10
    container_name: gitlab-postgresql
    volumes:
    - /volume1/docker/gitlab/postgresql:/var/lib/postgresql
    environment:
    - DB_USER=xxx
    - DB_PASS=xxx
    - DB_NAME=xxx
    - DB_EXTENSION=xxx

  gitlab:
    image: sameersbn/gitlab:latest
    container_name: gitlab
    links:
    - redis
    - postgresql
    ports:
    - "10080:80"
    - "10022:22"
    volumes:
    - /volume1/docker/gitlab/gitlab/config:/etc/gitlab
    - /volume1/docker/gitlab/gitlab/logs:/var/log/gitlab
    - /volume1/docker/gitlab/gitlab/data:/home/git/data
    - /volume1/docker/gitlab/gitlab/opt:/var/opt/gitlab
    environment:
    - DB_ADAPTER=xxx
    - DB_HOST=xxx
    - DB_PORT=5432
    - DB_USER=xx
    - DB_PASS=xxx
    - DB_NAME=gitlabhq_production
    - REDIS_HOST=redis
    - REDIS_PORT=6379
    - TZ=Europe/Pais
    - GITLAB_TIMEZONE=Europe/Paris
    - GITLAB_HTTPS=false
    - GITLAB_SSH_PORT=8022
    - GITLAB_HOST=localhost
    - GITLAB_ROOT_PASSWORD=xxx
    - GITLAB_ROOT_EMAIL=xxx
    - GITLAB_EMAIL_DISPLAY_NAME=x
    - GITLAB_EMAIL_SUBJECT_SUFFIX=xxx
    - GITLAB_EMAIL_ENABLED=true
    - GITLAB_EMAIL=xxx
    - GITLAB_EMAIL_REPLY_TO=xxx
    - GITLAB_INCOMING_EMAIL_ADDRESS=xxx
    - SMTP_ENABLED=true
    - SMTP_USER=xxx
    - SMTP_PASS=xxx
    - SMTP_DOMAIN=www.gmail.com
    - SMTP_HOST=smtp.gmail.com
    - SMTP_PORT=587
    - SMTP_STARTTLS=true
    - SMTP_AUTHENTICATION=plain
    - IMAP_ENABLED=true
    - IMAP_HOST=imap.gmail.com
    - IMAP_PORT=993
    - IMAP_USER=xxx@gmail.com
    - IMAP_PASS=xxx
    - GITLAB_SECRETS_DB_KEY_BASE=xxx
    - GITLAB_SECRETS_SECRET_KEY_BASE=xxx
    - GITLAB_SECRETS_OTP_KEY_BASE=xxx

I tried to install/configure GitLab always with docker but on my mac. Exactly the same issue… -_-
If someone has an idea ? Thanks!

Not sure what’s happening, it probably is the email settings. I’m assuming this is run in your home, so maybe you need to set some firewall rules in your router.

In any case, you can reset the root password by getting into the container and issuing some commands https://docs.gitlab.com/ee/security/reset_root_password.html.

PS. I see you’re using the sameersbn/gitlab image which is not officially supported. Maybe talk with upstream.

Thanks for your reply. I followed this post to reset the root password : https://github.com/sameersbn/docker-gitlab/issues/929

However same issue after restarting gitlab via the docker. When I go to http://localhost:10080 I’m directly redirected to this page

Please help :wink: Thanks!

That’s the page where you set the root password. Set a root password and the you can log in with that password and the user “root”

Unfortunately no… After entered a new password I get : http://digitalblend.fr/screen-gitlab2.png