Last active
November 29, 2016 17:45
-
-
Save cokeSchlumpf/7d8bfd941075a37d73dfc73d7784ccb8 to your computer and use it in GitHub Desktop.
gitlab + gitlab-runner
This file contains hidden or 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
concurrent = 1 | |
check_interval = 0 | |
[[runners]] | |
name = "Sample Runner" | |
url = "http://gitlab:9080" | |
token = "b9f216ac4a40d71994bad41269154a" | |
executor = "docker" | |
[runners.docker] | |
tls_verify = false | |
image = "ubuntu:latest" | |
privileged = false | |
disable_cache = true | |
volumes = ["/cache"] | |
network_mode = "gitlabtest_frontend-tier" | |
pull_policy = "if-not-present" | |
[runners.cache] | |
[[runners]] | |
name = "Docker Runner" | |
url = "http://gitlab:9080/" | |
token = "670c4567425b37cda0f143d7db07d4" | |
executor = "shell" | |
[runners.cache] |
This file contains hidden or 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: '2' | |
services: | |
gitlab: | |
image: gitlab/gitlab-ce:latest | |
container_name: gitlab | |
hostname: gitlab | |
restart: always | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://gitlab:9080' | |
gitlab_rails['gitlab_shell_ssh_port'] = 9022 | |
ports: | |
- '9080:9080' | |
- '9443:443' | |
- '9022:22' | |
volumes: | |
- gitlab-config:/etc/gitlab | |
- gitlab-data:/var/opt/gitlab | |
networks: | |
- frontend-tier | |
- backend-tier | |
gitlab-runner: | |
image: gitlab/gitlab-runner:latest | |
container_name: gitlab-runner | |
hostname: gitlab-runner | |
restart: always | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock | |
- gitlab-runner:/etc/gitlab-runner | |
networks: | |
- backend-tier | |
volumes: | |
gitlab-config: | |
driver: local | |
gitlab-data: | |
driver: local | |
gitlab-runner: | |
driver: local | |
networks: | |
frontend-tier: | |
driver: bridge | |
backend-tier: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment