* update gitlab to latest version This should refer to the offical docker compose file of gitlab: https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/docker/docker-compose.yml * added option to select gitlab external_url prefix This is needed so that rancher will put a correct uri scheme prefix to the ${gitlab_hostname} to the external_url. * added external_url prefix honestly i don't know if `${gitlab_omnipus_prefix}${gitlab_hostname}` will work since i cannot test it by myself right now, but imo that should work.... * changed version to latest since image is going to be gitlab/gitlab-ce:latest, the version here inside the readme should reflect this. * update to latest
28 lines
566 B
YAML
28 lines
566 B
YAML
gitlab-server:
|
|
ports:
|
|
- ${ssh_port}:22/tcp
|
|
- ${http_port}:80/tcp
|
|
- ${https_port}:443/tcp
|
|
labels:
|
|
io.rancher.sidekicks: gitlab-data
|
|
hostname: ${gitlab_hostname}
|
|
image: gitlab/gitlab-ce:latest
|
|
volumes_from:
|
|
- gitlab-data
|
|
environment:
|
|
GITLAB_OMNIBUS_CONFIG: |
|
|
external_url '${gitlab_omnipus_prefix}${gitlab_hostname}'
|
|
|
|
gitlab-data:
|
|
labels:
|
|
io.rancher.container.start_once: 'true'
|
|
entrypoint:
|
|
- /bin/true
|
|
hostname: gitdata
|
|
image: gitlab/gitlab-ce:latest
|
|
volumes:
|
|
- /etc/gitlab
|
|
- /var/log/gitlab
|
|
- /var/opt/gitlab
|
|
|