
This Dockerfile build an extension of the official GitLab CE image, and provide ability to create container environment variables that ca be used in the 'GITLAB_OMNIBUS_CONFIG' variable.

sudo docker run --detach \
--hostname gitlab.example.com \
--env GITLAB_SCHEME="http" \
--env GITLAB_HOST="gitlab.leadware.net" \
--env DB_ADAPTER="postgresql" \
--env DB_HOST="gitlab-db" \
--env DB_PORT="5432" \
--env DB_DATABASE="gitlab" \
--env DB_USER="gitlab" \
--env DB_PASSWORD="ch@ngeit123" \
--env DB_ENCODING="utf8" \
--env GITLAB_OMNIBUS_CONFIG="external_url '#{ENV['GITLAB_SCHEME']}://#{ENV['GITLAB_HOST']}/'; gitlab_rails['db_adapter'] = #{ENV['DB_ADAPTER']}; gitlab_rails['db_encoding'] = #{ENV['DB_ENCODING']} gitlab_rails['db_database'] = #{ENV['DB_NAME']} gitlab_rails['db_username'] = #{ENV['DB_USER']} gitlab_rails['db_password'] = #{ENV['DB_PASS']} gitlab_rails['db_host'] = #{ENV['DB_HOST']} gitlab_rails['db_port'] = #{ENV['DB_PORT']}" \
--publish 443:443 --publish 80:80 --publish 22:22 \
--name gitlab \
--restart always \
--volume /srv/gitlab/config:/etc/gitlab \
--volume /srv/gitlab/logs:/var/log/gitlab \
--volume /srv/gitlab/data:/var/opt/gitlab \
leadware/gitlab-ce:10.1.4-ce.0-pg
For detailed gitlab docker image, please refer to the official GitLab image usage on docker store Official GitLab image documentation
Content type
-
Digest
Size
152.5 MB
Last updated
almost 9 years ago
docker pull leadware/oracle-java6