docker 安装 gitlab

3-13 87 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

ffmpeg下载m3u8为mp4

ffmpeg -i "https://www.test.com/a.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 test.mp4

阅读全文

docker安装 elasticsearch,filebeat,kibana 日志系统

参考文档 参考:https://github.com/maxyermayank/docker-compose-elasticsearch-kibana/blob/master/docker-compose.yml 参考:https://www.elastic.co/guid...

阅读全文

docker安装jenkins

命令 #开启jenkins,根本地8082端口绑定 -d 后台运行,--restart=always 跟随docker启动,-v 绑定本地目录 $ docker run --name jenkins -d -p 8082:8080 -p 50...

阅读全文

欢迎留言