1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-02-09 13:46:55 +02:00
dockerfiles/gitlab/docker-compose.yml

17 lines
384 B
YAML
Raw Normal View History

2015-08-23 17:54:55 +08:00
gitlab:
image: gitlab/gitlab-ce
2016-06-10 12:35:11 +08:00
hostname: git.example.com
2016-06-09 23:41:17 +08:00
environment:
GITLAB_OMNIBUS_CONFIG: |
2016-06-10 12:35:11 +08:00
external_url 'https://git.example.com'
nginx['redirect_http_to_https'] = true
2015-08-23 17:54:55 +08:00
ports:
2016-06-09 23:41:17 +08:00
- "22:22"
- "80:80"
- "443:443"
2015-08-23 17:54:55 +08:00
volumes:
2016-06-09 23:41:17 +08:00
- ./gitlab/config:/etc/gitlab
- ./gitlab/logs:/var/log/gitlab
- ./gitlab/data:/var/opt/gitlab
2015-08-23 17:54:55 +08:00
restart: always