mirror of
https://github.com/mgcrea/docker-compose-gitlab-ce.git
synced 2025-07-23 05:17:55 +00:00
46 lines
1.8 KiB
Markdown
46 lines
1.8 KiB
Markdown
# Compose file for Gitlab Community Edition
|
|
|
|
[](https://tldrlegal.com/license/mit-license)
|
|
[](https://registry.hub.docker.com/u/gitlab/gitlab-ce/)
|
|
[](https://registry.hub.docker.com/u/gitlab/gitlab-ce/)
|
|
|
|
Working `docker-compose.yml` for official [gitlab-ce](https://hub.docker.com/r/gitlab/gitlab-ce) docker images leveraging separate instances for services:
|
|
|
|
- Uses official [postgres](https://hub.docker.com/_/postgres/) docker image
|
|
- Uses official [redis](https://hub.docker.com/_/redis/) docker image
|
|
- Comes with a [gitlab-runner](https://hub.docker.com/r/gitlab/gitlab-runner/) instance
|
|
|
|
Made to work behind a separate automated [nginx-proxy](https://github.com/jwilder/nginx-proxy) with SSL support via letsencrypt.
|
|
|
|
|
|
## Quickstart
|
|
|
|
- You can quickly start your compose gitlab instance (requires a working automated nginx_proxy compose instance)
|
|
|
|
```bash
|
|
git clone git@github.com:mgcrea/docker-compose-gitlab-ce.git gitlab; cd $_
|
|
cp .env.default .env; nano .env
|
|
make
|
|
docker-compose up -d
|
|
```
|
|
|
|
|
|
## Check postgres bundled version
|
|
|
|
```bash
|
|
source .env
|
|
docker run --rm -it gitlab/gitlab-ce:${GITLAB_CE_VERSION} postgres --version
|
|
```
|
|
|
|
## Templates
|
|
|
|
- [gitlab.rb](https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template)
|
|
|
|
## Related Documentation
|
|
|
|
- [Gitlab installation](https://docs.gitlab.com/ce/install/docker.html)
|
|
- [GitLab Docker images](https://docs.gitlab.com/omnibus/docker/)
|
|
- [GitLab CI Docker images](https://docs.gitlab.com/ce/ci/docker/using_docker_images.html)
|
|
- [Using a non-bundled web-server](https://docs.gitlab.com/omnibus/settings/nginx.html#using-a-non-bundled-web-server)
|
|
|