Docker上的Synology Gitlab

时间:2018-09-18 15:05:25

标签: git docker server gitlab synology

我正在尝试在Synology服务器上安装和设置GitLab。我关注了this tutorial。我的问题是,当我转到GitLab页面时,我需要输入新密码才能激活我的帐户(愚蠢的主意)。我在docker-compose.yml上设置了所有需要的环境变量,我检查了所有日志,但没有任何通知我有问题。但是我从未收到电子邮件确认...请帮助!

这是我完整的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

0 个答案:

没有答案