ansible/playbooks/tasks/web/gitlab.yml

23 lines
609 B
YAML
Raw Normal View History

2022-08-04 18:09:26 -05:00
# 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'
2022-08-04 18:19:03 -05:00
gitlab_rails['gitlab_shell_ssh_port'] = 2224
nginx['listen_port'] = 80
nginx['listen_https'] = false
2022-08-04 18:09:26 -05:00
ports:
2022-08-04 18:19:03 -05:00
- 2224:22
2022-08-04 18:09:26 -05:00
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 ]