ansible/playbooks/tasks/web/gitlab.yml

30 lines
971 B
YAML

# 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'] = 2224
gitlab_rails['db_adapter'] = 'postgresql'
gitlab_rails['db_database'] = 'gitlab-desultd'
gitlab_rails['db_encoding'] = 'unicode'
gitlab_rails['db_host'] = '10.0.0.2'
gitlab_rails['db_password'] = '{{ secret_gitlab_db_pass }}'
gitlab_rails['db_username'] = 'gitlab-desultd'
nginx['listen_port'] = 80
nginx['listen_https'] = false
postgresql['enable'] = false
ports:
- 2224:22/tcp
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 ]