You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/labs/gitlab/docker-compose.yml

38 lines
1.2 KiB

version: "3.8"
services:
#https://docs.gitlab.com/omnibus/docker/#install-gitlab-using-docker-compose
#https://github.com/sameersbn/docker-gitlab/blob/master/docker-compose.yml
gitlab:
image: gitlab/gitlab-ce:13.12.0-ce.0
restart: always
privileged: true
hostname: ${IP}
environment:
TZ: ${TZ}
GITLAB_ROOT_PASSWORD: aA123456!
GITLAB_OMNIBUS_CONFIG: |
external_url 'http://${IP}'
gitlab_rails['time_zone'] = 'Asia/Shanghai'
ports:
- 9080:80
#- 9443:443
#- 9022:22
volumes:
- ./data/gitlab/etc:/etc/gitlab
- ./data/gitlab/log:/var/log/gitlab
- ./data/gitlab/opt:/var/opt/gitlab
#https://docs.gitlab.com/runner/register/index.html#docker
#http://localhost:9080/admin/runners
#gitlab-runner register
gitlab-runner:
image: gitlab/gitlab-runner:alpine-v13.12.0
restart: always
privileged: true
environment:
TZ: ${TZ}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/gitlab-runner:/etc/gitlab-runner
depends_on:
- gitlab