标签:contain dev net ports ibus rail 从零开始 volumes gitlab
https://blog.csdn.net/crper/article/details/81291034
version: ‘3.6‘
services:
gitlab:
container_name: gitlab
hostname: ‘10.9.7.1‘
image: gitlab/gitlab-ce:latest
restart: always
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url ‘https://域名‘
ports:
- "80:80"
- "443:443"
- "2224:22"
volumes:
- "/data/gitlab/config:/etc/gitlab"
- "/data/gitlab/logs:/var/log/gitlab"
- "/data/gitlab/data:/var/opt/gitlab"
docker compose https://docs.gitlab.com/omnibus/docker/
web:
image: ‘gitlab/gitlab-ce:latest‘
restart: always
hostname: ‘gitlab.example.com‘
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url ‘http://gitlab.example.com:8929‘
gitlab_rails[‘gitlab_shell_ssh_port‘] = 2224
ports:
- ‘8929:8929‘
- ‘2224:22‘
volumes:
- ‘$GITLAB_HOME/gitlab/config:/etc/gitlab‘
- ‘$GITLAB_HOME/gitlab/logs:/var/log/gitlab‘
- ‘$GITLAB_HOME/gitlab/data:/var/opt/gitlab‘
标签:contain dev net ports ibus rail 从零开始 volumes gitlab
原文地址:https://www.cnblogs.com/franzlistan/p/12973811.html