GitLab Stack

Host your own GitLab instance with docker

docker run --detach \
--hostname yourdomain.com \
--publish 6443:443 --publish 6080:80 --publish 22332:22 \
--name gitlab \
--restart always \
--volume /docker/gitlab/config:/etc/gitlab \
--volume /docker/gitlab/logs:/var/log/gitlab \
--volume /docker/gitlab/data:/var/opt/gitlab \
gitlab/gitlab-ce:latest

Or use docker-compose.yml or portainer stack

version: '3'
services:
 web:
    image: gitlab/gitlab-ce:latest
    container_name: gitlab
    restart: always
    hostname: gitlab
    ports:
        - 2080:80
        - 2443:443
        - 2222:22
    volumes:
        - ./config:/etc/gitlab #Change to your own path here
        - ./logs:/var/log/gitlab
        - ./data:/var/opt/gitlab