https://docs.gitlab.com/omnibus/docker/

 

 

--------------------------------------------------------------------

sudo docker run --detach \

  --hostname gitlab.example.com \

  --publish 3443:443 --publish 3080:80 --publish 3022:22 \

  --name gitlab \

  --restart always \

  --volume /opt/dev/gitlab/config:/etc/gitlab \

  --volume /opt/dev/gitlab/logs:/var/log/gitlab \

  --volume /opt/dev/gitlab/data:/var/opt/gitlab \

  gitlab/gitlab-ce:latest

--------------------------------------------------------------------

 

--------------------------------------------------------------------

docker-compose.yml

--------------------------------------------------------------------

web:

  image: 'gitlab/gitlab-ce:latest'

  restart: always

  hostname: 'gitlab.example.com'

  environment:

    GITLAB_OMNIBUS_CONFIG: |

      external_url 'https://gitlab.example.com'

      # Add any other gitlab.rb configuration here, each on its own line

  ports:

    - '3080:80'

    - '3443:443'

    - '3022:22'

  volumes:

    - '/opt/dev/gitlab/config:/etc/gitlab'

    - '/opt/dev/gitlab/logs:/var/log/gitlab'

    - '/opt/dev/gitlab/data:/var/opt/gitlab'

--------------------------------------------------------------------

 

 

-  https://blog.sonatype.com/maxences-technical-corner

    >> Using a Dockerized Nexus as a Docker Registry

 

--------------------------------------------------------------------

  nexus-data fold link #01 - bind local directory to nexus

--------------------------------------------------------------------

$ mkdir -p /opt/dev/dockerized_env/nexus/data

$ sudo chown -R 200 /opt/dev/dockerized_env/nexus/data

$ docker run -d --name nexus --restart always -p 3081:8081 -p 3082:8082 -v /opt/dev/dockerized_env/nexus/data:/nexus-data sonatype/nexus3

 

--------------------------------------------------------------------

  nexus-data fold link #02 - using docker volume

--------------------------------------------------------------------

$ docker volume create --name nexus-data  

$ docker volume ls

$ docker run -d --name nexus --restart always -p 3081:8081 -p 3082:8082 -v nexus-data:/nexus-data sonatype/nexus3

 

 

 

 

 

 

'DevOps' 카테고리의 다른 글

Java Dump creation script  (0) 2020.01.15
Ping Test for Tomcat AJP connector  (0) 2020.01.15
docker cli #01  (0) 2020.01.15
Ansible quick start  (0) 2020.01.15
Git cheat sheet #02  (0) 2020.01.15
블로그 이미지

Melting

,