docker search gitlab
docker pull gitlab/gitlab-ce
version: '3.1'
services:
gitlab:
image: 'gitlab/gitlab-ce:latest'
container_name: gitlab
restart: always
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://178.119.30.16:8929'
gitlab_rails['gitlab_shell_ssh_port'] = 2224
ports:
- '8929:8929'
- '2224:2224'
volumes:
- './config:/etc/gitlab'
- './logs:/var/log/gitlab'
- './data:/var/opt/gitlab'
docker compose -f gitlab_docker.yml up -d
docker compose -f gitlab_docker.yml logs -t --tail=10
http://178.119.30.16:8929/
docker exec -it gitlab cat /etc/gitlab/initial_root_password