Created
July 13, 2020 08:57
-
-
Save farindra/d1d29a0e9973a97fb011985c37b022a5 to your computer and use it in GitHub Desktop.
Gilab and Gitlab Runner container
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.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