gitlab-compose.yml
【代码】gitlab-compose.yml。
·
gitlab-compose.yml
version: '3'
services:
gitlab:
image: 'gitlab/gitlab-ce'
restart: always
privileged: true
hostname: gitlab
container_name: gitlab
environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://192.168.174.21:8088'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
nginx['listen_port'] = 80
networks:
- test
ports:
- '8088:80'
- '2443:443'
- '2222:22'
volumes:
- ./config:/etc/gitlab
- ./data:/var/opt/gitlab
- ./logs:/var/log/gitlab
logging:
options:
max-size: "512M"
max-file: "1"
networks:
test:
更多推荐
已为社区贡献1条内容
所有评论(0)