Add GitLab

This commit is contained in:
Salt 2022-08-04 18:09:26 -05:00
parent 088ea5f917
commit 03340c3b0a
3 changed files with 25 additions and 0 deletions

View File

@ -94,6 +94,8 @@
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: git.desu.ltd
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: gitlab.desu.ltd
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: matrix.desu.ltd
value: vm-general-1.ashburn.mgmt.desu.ltd
- record: movie.desu.ltd

View File

@ -24,6 +24,7 @@
- web/desultd.yml
- web/element-web.yml
- web/gitea.yml
- web/gitlab.yml
- web/netbox.yml
- web/nextcloud.yml
- web/srv.yml
@ -235,6 +236,8 @@
return 200 '{"m.homeserver":{"base_url":"https://matrix.desu.ltd"}}';
- name: git.desu.ltd
proxy_pass: http://gitea:3000
- name: gitlab.desu.ltd
proxy_pass: http://gitlab
- name: matrix.desu.ltd
proxies:
- location: "~* ^(\/_matrix|\/_synapse|\/client|\/health)"

View File

@ -0,0 +1,20 @@
# vim:ft=ansible:
- name: docker deploy gitlab
docker_container:
name: gitlab
image: gitlab/gitlab-ce:latest
log_driver: journald
env:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.desu.ltd'
gitlab_rails['gitlab_shell_ssh_port'] = 2222
ports:
- 127.0.0.1:2222:22
networks:
- name: web
aliases: [ "gitlab" ]
volumes:
- /data/gitlab/config:/etc/gitlab
- /data/gitlab/logs:/var/log/gitlab
- /data/gitlab/data:/var/opt/gitlab
tags: [ docker, gitlab ]