Skip to content
Full dockerized Gitlab CI/CD. This project includes docker registry, gitlab, dockerized (installed docker and docker-compose) gitlab-runner host on alpine, also, non-bundled proxy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cert
ci
proxy
.gitignore
README.md
docker-compose.yml

README.md

Dockerized GITLAB & CI/CD

Alt Text

Usage

Set values for env variables in the .env file, like as follow

PUBLISH_PORT_HTTP=80
PUBLISH_PORT_HTTPS=443

SSL=ssl

GITLAB_EXTERNAL_SCHEMA=http or https
GITLAB_EXTERNAL_HOST=git.example.com
GITLAB_EXTERNAL_PORT=80

GITLAB_PUBLISH_PORT_SSH=22

GITLAB_CONF=/example/git/config
GITLAB_LOGS=/example/git/logs
GITLAB_RUNNER=/example/git/data

REGISTRY_EXTERNAL_HOST=registry.example.com
REGISTRY_DATA=/example/registry/data

REGISTRY_LOGIN=
REGISTRY_PASSWD=

GITLAB_RUNNER=/example/git/runner

PROXY_LOGS=/exaple/proxy/logs

Read .env:

$ source .env 

Build images:

$ docker-compose build

Start services:

$ docker-compose up -d

Down services:

$ docker-compose down

FYI

Before using this, be sure to ask for the blessing from Ali. 🎉

Gitlab runner config: ci/config.toml

Also If you want to use ssl certificate, add environment variable SSL=ssl (or non-ssl for non-secure connection) please generate that under the cert directory.

You can’t perform that action at this time.