GitLab 시작

작업 디렉터리에 docker-compose.yml 파일이 있는지 확인합니다.

$ ls -al
total 24
drwxr-xr-x 5 ubuntu ubuntu 4096 Mar 28 07:48 .
drwxr-xr-x 3 root   root   4096 Mar 28 06:29 ..
drwxr-xr-x 2 ubuntu ubuntu 4096 Mar 28 06:29 config
drwxr-xr-x 2 ubuntu ubuntu 4096 Mar 28 06:29 data
-rw-rw-r-- 1 ubuntu ubuntu  453 Mar 28 07:48 docker-compose.yml
drwxr-xr-x 2 ubuntu ubuntu 4096 Mar 28 06:29 logs

docker-compose up -d 명령을 실행하여 GitLab을 시작합니다.

$ docker-compose up -d
[+] Running 9/9
 ✔ gitlab 8 layers [⣿⣿⣿⣿⣿⣿⣿⣿]      0B/0B       Pulled            70.4s
   ✔ 3f94e4e483ea Pull complete                                    2.5s
   ✔ 0374596cc10f Pull complete                                    4.5s
   ✔ 8325fdb9e079 Pull complete                                    4.6s
   ✔ 9bac5d4f8325 Pull complete                                    4.6s
   ✔ b7eb59539dfd Pull complete                                    4.6s
   ✔ c90078b3bbc9 Pull complete                                    4.7s
   ✔ d8c2c69c8707 Pull complete                                    4.7s
   ✔ fa9ffd723248 Pull complete                                   68.1s
[+] Building 0.0s (0/0)
[+] Running 2/2
 ✔ Network gitlab_default  Created                                 0.1s
 ✔ Container gitlab        Started

아래 명령을 실행하면 GitLab 구동 로그를 확인할 수 있습니다.

docker-compose logs -f

아래 명령을 실행하여 container 목록을 확인할 수 있습니다.

$ docker-compose ps
NAME                IMAGE                          COMMAND             SERVICE             CREATED             STATUS                   PORTS
gitlab              gitlab/gitlab-ee:16.1.0-ee.0   "/assets/wrapper"   gitlab              3 minutes ago       Up 3 minutes (healthy)   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp, 0.0.0.0:8022->22/tcp, :::8022->22/tcp