Skip to content

Instantly share code, notes, and snippets.

@meee1
Last active February 20, 2024 12:46
Show Gist options
  • Select an option

  • Save meee1/d6cc3c2dcb102769be2217633f7f58c0 to your computer and use it in GitHub Desktop.

Select an option

Save meee1/d6cc3c2dcb102769be2217633f7f58c0 to your computer and use it in GitHub Desktop.
gitlab 9.3.5 stuff
version: '3.6'
services:
gitlab:
image: gitlab/gitlab-ce:9.3.5-ce.0
container_name: gitlab
restart: always
hostname: 'gitlab'
environment:
GITLAB_OMNIBUS_CONFIG: |
# Add any other gitlab.rb configuration here, each on its own line
external_url 'http://gitlab'
ports:
- '80:80'
- '443:443'
- '22:22'
volumes:
- '$GITLAB_HOME/config:/etc/gitlab'
- '$GITLAB_HOME/logs:/var/log/gitlab'
- '$GITLAB_HOME/data:/var/opt/gitlab'
shm_size: '256m'
gitlab-rake gitlab:two_factor:disable_for_all_users
gitlab-rails console
ApplicationSetting.first.admin_notification_email
s = ApplicationSetting.find_by(signin_enabled: false)
s.signin_enabled = true
s.save
ApplicationSetting.first.update(home_page_url: "", after_sign_out_path: "")
UPDATE application_settings set password_authentication_enabled=true;
User.all
User.all.each do |user|
user.update(password: "testing123", password_confirmation: "testing123", notification_email: "")
user.save
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment