Skip to content

Instantly share code, notes, and snippets.

@farindra
Created July 13, 2020 08:57
Show Gist options
  • Save farindra/d1d29a0e9973a97fb011985c37b022a5 to your computer and use it in GitHub Desktop.
Save farindra/d1d29a0e9973a97fb011985c37b022a5 to your computer and use it in GitHub Desktop.
Gilab and Gitlab Runner container
version: '3.5'
services:
gitlab:
image: gitlab/gitlab-ce:latest
hostname: www.jamescoyle.net
restart: unless-stopped
environment:
GITLAB_OMNIBUS_CONFIG: |
gitlab_rails['gitlab_shell_ssh_port'] = 8822
ports:
- "8000:80"
- "8822:22"
volumes:
- ./config/gitlab:/etc/gitlab
- ./data/gitlab:/var/opt/gitlab
- ./logs:/var/log/gitlab
networks:
- gitlab
gitlab-runner:
image: gitlab/gitlab-runner:alpine
restart: unless-stopped
depends_on:
- gitlab
volumes:
- ./config/gitlab-runner:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
networks:
- gitlab
networks:
gitlab:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment