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
|
2022-08-04 18:31:01 -05:00
|
|
|
gitlab_rails['db_adapter'] = 'postgresql'
|
2022-08-04 18:59:02 -05:00
|
|
|
gitlab_rails['db_database'] = 'gitlab-desultd'
|
2022-08-04 18:31:01 -05:00
|
|
|
gitlab_rails['db_encoding'] = 'unicode'
|
|
|
|
gitlab_rails['db_host'] = '10.0.0.2'
|
|
|
|
gitlab_rails['db_password'] = '{{ secret_gitlab_db_pass }}'
|
2022-08-04 18:59:02 -05:00
|
|
|
gitlab_rails['db_username'] = 'gitlab-desultd'
|
2022-08-04 18:14:21 -05:00
|
|
|
nginx['listen_port'] = 80
|
|
|
|
nginx['listen_https'] = false
|
2022-08-04 18:59:02 -05:00
|
|
|
postgresql['enable'] = false
|
2022-08-04 18:09:26 -05:00
|
|
|
ports:
|
2022-08-04 18:31:01 -05:00
|
|
|
- 2224:22/tcp
|
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 ]
|