Last active
February 8, 2018 20:47
-
-
Save attrib/c9a1c519b9109e5e589a8507e15842d0 to your computer and use it in GitHub Desktop.
gitlab ci + gitlab runner docker compse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
gitlab-runner: | |
restart: always | |
image: gitlab/gitlab-runner:latest | |
privileged: true | |
volumes: | |
- ./gitlab-runner/config:/etc/gitlab-runner | |
- /var/run/docker.sock:/var/run/docker.sock | |
gitlab: | |
image: 'gitlab/gitlab-ce:10.4.2-ce.0' | |
restart: always | |
#hostname: 'gitlab' | |
ports: | |
- '10080:10080' | |
- '10443:443' | |
- '10022:22' | |
volumes: | |
- './config:/etc/gitlab' | |
- './logs:/var/log/gitlab' | |
- './data:/var/opt/gitlab' | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://gitlab:10080' | |
gitlab_rails['gitlab_shell_ssh_port'] = 10022 | |
nginx['listen_port'] = 10080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment