Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/an0n1mity/gitlab-stack-docker-compose
Docker-based setup for GitLab and GitLab Runner.
https://github.com/an0n1mity/gitlab-stack-docker-compose
docker docker-compose gitlab gitlab-ci gitlab-runner
Last synced: about 1 month ago
JSON representation
Docker-based setup for GitLab and GitLab Runner.
- Host: GitHub
- URL: https://github.com/an0n1mity/gitlab-stack-docker-compose
- Owner: An0n1mity
- Created: 2024-04-13T13:22:16.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-04T15:49:44.000Z (8 months ago)
- Last Synced: 2024-10-19T22:38:37.620Z (2 months ago)
- Topics: docker, docker-compose, gitlab, gitlab-ci, gitlab-runner
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GitLab Stack Setup
This repository provides a Docker-based setup for GitLab and GitLab Runner using docker-compose.
### Services
- **GitLab**:
- Image: `gitlab/gitlab-ce:latest`
- Container Name: `gitlab`
- Hostname: `gitlab.example.com`
- Ports:
- `80:80`
- `443:443`
- `2222:22`
- Volumes:
- `/srv/config:/etc/gitlab`
- `/srv/logs:/var/log/gitlab`
- `/srv/data:/var/opt/gitlab`
- Shared Memory Size: `256m`
- Networks: `gitlab-network`- **GitLab Runner**:
- Image: `gitlab/gitlab-runner:latest`
- Container Name: `gitlab-runner`
- Depends On: `gitlab`
- Volumes:
- `/var/run/docker.sock:/var/run/docker.sock`
- `/srv/gitlab-runner/config:/etc/gitlab-runner`
- Networks: `gitlab-network`### Gitlab setup Script
The gitlab-setup script automates the deployment and configuration of the GitLab stack. It supports two modes of operation: `setup` and `register`.
#### Setup
```bash
./gitlab-setup.sh setup
```- Initializes required directories.
- Starts the GitLab stack.
- Sets up SSL certificates.
- Reconfigures GitLab.
- Sets up GitLab Runner.#### Register
```bash
./gitlab-setup.sh register
```- Registers the GitLab Runner.
## Notes
- Ensure Docker and Docker Compose are installed.
- Modify configurations as needed in **docker-compose.yml**.
- SSL certificates are generated for **gitlab.example.com**.
- Runner registration requires manual configuration if using different domain or certificates.