How to run gitlab on arm server using docker compose 如何在arm伺服器上部署gitlab
In order to run :
version: '3.7'
services:
web:
image: 'gitlab-ce:latest'
restart: always
hostname: '{hostname}'
container_name: gitlab-ce
environment:
VIRTUAL_HOST: '{hostname}'
LETSENCRYPT_HOST: '{hostname}'
GITLAB_OMNIBUS_CONFIG: |
external_url='https://{gitlab.hostname}:{port}'
pages_external_url='https://{page.hostname}:{port}'
gitlab_pages['enable'] = true
nginx['enable'] = true
nginx['listen_port'] = 443
gitlab_rails['gitlab_shell_ssh_port'] = 2222
gitlab_rails['GITLAB_PORT'] = {port}
letsencrypt['enable'] = true
letsencrypt['contact_emails'] = ['admin@{email server}']
gitlab_rails['gitlab_email_from'] = 'gitlab-no-reply@{email server}'
gitlab_rails['gitlab_email_display_name'] = 'GitLab Administrator'
gitlab_rails['gitlab_email_reply_to'] = 'admin@{email server}'
gitlab_rails['backup_keep_time'] = 14515200
gitlab_rails['smtp_enable'] = true
gitlab_rails['smtp_address'] = "{mail server}"
gitlab_rails['smtp_port'] = 587
gitlab_rails['smtp_user_name'] = "{account}@{mail server}"
gitlab_rails['smtp_password'] = "{password}"
gitlab_rails['smtp_domain'] = "{mail server}"
gitlab_rails['smtp_authentication'] = "login"
ports:
- '2052:80'
- '2053:443'
- '2222:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
networks:
- gitlab
gitlab-runner:
image: gitlab/gitlab-runner:alpine
container_name: gitlab-runner
restart: always
depends_on:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- '$GITLAB_HOME/gitlab-runner:/etc/gitlab-runner'
networks:
- gitlabnetworks:
gitlab:
name: gitlab-network
Metadata
Status :: #🌱
Note Type :: #📩/📰
Source URL :: docker-compose.yml
Author :: {作者名稱}
Topics :: #git
To Me :: #mind
Parent Link :: {可以連結到哪個父筆記}
Sibling Link :: {可以連結到哪個相關筆記}
Child Link :: {可以連結到哪個子筆記}