install.fairie/home/dot_config/docker/TODO/gitlab.docker-stack.yml.tmpl

40 lines
726 B
Cheetah
Raw Normal View History

---
version: "3.6"
services:
gitlab:
image: gitlab/gitlab-ee:latest
ports:
- "22:22"
- "80:80"
- "443:443"
volumes:
- gitlab-data:/var/opt/gitlab
- gitlab-logs:/var/log/gitlab
- gitlab-config:/etc/gitlab
shm_size: '256m'
environment:
GITLAB_OMNIBUS_CONFIG: "from_file('/omnibus_config.rb')"
configs:
- source: gitlab
target: /omnibus_config.rb
secrets:
- gitlab_root_password
gitlab-runner:
image: gitlab/gitlab-runner:alpine
deploy:
mode: replicated
replicas: 4
configs:
gitlab:
external: true
secrets:
gitlab_root_password:
external: true
volumes:
gitlab-data:
gitlab-logs:
gitlab-config: