docker 安装 gitlab

3-13 241 views

命令安装

启动命令
docker run --detach \
  --hostname 127.0.0.1 \
  --publish 8181:8181 \
  --name gitlab \
  --restart always \
  --volume /apps/docker/gitlab/config:/etc/gitlab \
  --volume /apps/docker/gitlab/logs:/var/log/gitlab \
  --volume /apps/docker/gitlab/data:/var/opt/gitlab \
  gitlab/gitlab-ce:latest

docker compose 方式

#docker-compose.yml
gitlab:
    image: 'gitlab/gitlab-ce:latest'
    container_name: gitlab
    environment:
    GITLAB_OMNIBUS_CONFIG: |
        external_url 'http://git.blackmatch.cn'
        # email setting
        gitlab_rails['smtp_enable'] = true
        gitlab_rails['smtp_address'] = "smtp.gmail.com"
        gitlab_rails['smtp_port'] = 587
        gitlab_rails['smtp_user_name'] = "my.email@gmail.com"
        gitlab_rails['smtp_password'] = "my-gmail-password"
        gitlab_rails['smtp_domain'] = "smtp.gmail.com"
        gitlab_rails['smtp_authentication'] = "login"
        gitlab_rails['smtp_enable_starttls_auto'] = true
        gitlab_rails['smtp_tls'] = false
        gitlab_rails['smtp_openssl_verify_mode'] = 'peer'
    ports:
      - '8181:8181'
    volumes:
      - './config:/etc/gitlab'
      - './logs:/var/log/gitlab'
      - './data:/var/opt/gitlab'
    restart: always

centos 安装 bento4 处理mp4 为 MPEG-DASH流

Bento4 Bento4是一个C ++类库和工具,旨在读取和写入ISO-MP4文件。此格式在国际规范ISO / IEC 14496-12、14496-14和14496-15中定义。该格式是Apple Quicktime...

阅读全文

centos7 yum安装ffmpeg

centos7 yum安装ffmpeg $ yum install epel-release $ yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7....

阅读全文

apache-kafka 和apache-zookeeper 设置 systemd服务和开机启动

参考:https://gist.github.com/vipmax/9ceeaa02932ba276fa810c923dbcbd4f 启动命令 #启动 $ systemctl daemon-reload $ systemctl enable kafka-zookeeper.s...

阅读全文

欢迎留言