gitbeaker/scripts/docker-compose.yml
Justin Dalrymple 7f1648802b Major Release v36.0.0 - Improved Typing, and API support (16.0) (#2258)
Adding extensive typing support
Unified browser and Node.JS implementations
Adding support of Gitlab API 16.0
2023-04-26 12:58:56 -04:00

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'