mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2025-12-08 20:25:52 +00:00
Adding extensive typing support Unified browser and Node.JS implementations Adding support of Gitlab API 16.0
19 lines
802 B
YAML
19 lines
802 B
YAML
version: '3.8'
|
|
services:
|
|
gitlab:
|
|
image: 'gitlab/gitlab-ce:latest'
|
|
container_name: 'gitlab'
|
|
environment:
|
|
GITLAB_URL: 'http://localhost:8080'
|
|
PERSONAL_ACCESS_TOKEN: 'gitbeaker'
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
gitlab_rails['monitoring_whitelist'] = ['0.0.0.0/0', '172.17.0.1'];
|
|
GITLAB_ROOT_PASSWORD: 'gitbeaker'
|
|
entrypoint:
|
|
- '/bin/sh'
|
|
- '-c'
|
|
- "printf '#!/usr/bin/env ruby \nu = User.first \nu.admin = true \nu.save! \nt = PersonalAccessToken.new({ user: u, name: \"gitbeaker\", scopes: [\"api\", \"read_user\"]}) \nt.set_token(\"$${PERSONAL_ACCESS_TOKEN}\") \nt.save! \nputs t.token\n' > /opt/gitlab/embedded/service/gitlab-rails/db/fixtures/production/40_access_token.rb && /assets/wrapper"
|
|
ports:
|
|
- '8080:80'
|
|
- '8443:443'
|