Skip to content

Instantly share code, notes, and snippets.

@nus
Created September 10, 2020 16:46
Show Gist options
  • Save nus/9abc5bef419c1c3832d2ee1751ab5497 to your computer and use it in GitHub Desktop.
Save nus/9abc5bef419c1c3832d2ee1751ab5497 to your computer and use it in GitHub Desktop.
Gitlab をローカルに立てるための docker-compose ファイル。https://qiita.com/gentaro/items/7dec88e663f59b472de6 を改変。
web:
image: 'gitlab/gitlab-ce:latest'
restart: always
hostname: 'localhost'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://localhost:9010'
gitlab_rails['gitlab_shell_ssh_port'] = 2022
ports:
- '9010:9010'
- '2022:22'
volumes:
- './volume/config:/etc/gitlab'
- './volume/logs:/var/log/gitlab'
- './volume/data:/var/opt/gitlab'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment