33 lines
677 B
YAML
33 lines
677 B
YAML
version: '3.3'
|
|
|
|
services:
|
|
gitlab:
|
|
image: gitlab/gitlab-ee:15.2.2-ee.0
|
|
volumes:
|
|
- /root/gitlab/data:/var/opt/gitlab
|
|
- /root/gitlab/logs:/var/log/gitlab
|
|
- /root/gitlab/config:/etc/gitlab
|
|
networks:
|
|
- default
|
|
- gitlab-nginx
|
|
hostname: 'gitlab.sprinthub.ru'
|
|
shm_size: '256m'
|
|
environment:
|
|
GITLAB_OMNIBUS_CONFIG: "from_file('/omnibus_config.rb')"
|
|
configs:
|
|
- source: gitlab
|
|
target: /omnibus_config.rb
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
networks:
|
|
default:
|
|
driver: overlay
|
|
gitlab-nginx:
|
|
external: true
|
|
|
|
configs:
|
|
gitlab:
|
|
file: /root/gitlab.rb
|