In the past, it was very troublesome to download the installation package from the official website, and various problems may occur during the installation process
Docker-compose is now adopted for construction
docker-compose.yml
version: '3'
services:
gitlab:
image: 'twang2218 / gitlab - ce - useful: 11.1.4'
restart: always
hostname: '192.168.3.33' Enter your own IP address or domain name
environment:
TZ: 'Asia/Shanghai'
GITLAB_OMNIBUS_CONFIG: | external_url 'http://192.168.3.33 # ditto gitlab_rails [' time_zone] =' Asia/Shanghai. # need to be configured to gitlab rb configuration Settings here nginx['listen_port'] = 80 ports:
- 80: 80
volumes:
- ./config:/etc/gitlab
- ./data:/var/opt/gitlab
- ./logs:/var/log/gitlab
Copy the code
The administrator user name is root and the password is set at the first login
entry too large
When submitting code to GitLab, there are large files in the project that you want to submit, such as SQL files, which may prompt entry too large
This is because the nginx configuration does not allow clients to submit too large a body. You can modify nginx.conf to increase client_max_body_size
Note this parameter if you use nginx as a proxy layer