docker-compose.yml
version: '3.8'
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
restart: unless-stopped
ports:
- '82:80'
- '10443:443'
- '11022:22'
volumes:
- './config:/etc/gitlab'
- './logs:/var/log/gitlab'
- './data:/var/opt/gitlab'
GitLab 默认创建 root 用户和密码, root 用户密码查询:
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password