gitlab docker-compose 文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
gitlab_11:
image: 'gitlab/gitlab-ce:11.0.1-ce.0'
restart: always
container_name: gitlab_11
privileged: true
hostname: 'gitlab.xxx.com'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://gitlab.xxx.com'
ports:
- '4080:80'
- '4443:443'
- '4022:22'
volumes:
- '/etc/gitlab/gitlab-ce-11.0.1-ce.0:/etc/gitlab'
- '/var/log/gitlab/gitlab-ce-11.0.1-ce.0:/var/log/gitlab'
- '/data/gitlab/gitlab-ce-11.0.1-ce.0:/var/opt/gitlab'