ansible/playbooks/tasks/web/gitea.yml

25 lines
685 B
YAML
Raw Normal View History

2021-08-07 16:49:24 -05:00
# vim:ft=ansible:
- name: docker deploy gitea
docker_container:
name: gitea
image: gitea/gitea:1
env:
USER_UID: "1002"
USER_GID: "1002"
GITEA__database_DB_TYPE: postgres
GITEA__database_HOST: 192.168.164.156:5432
GITEA__database_NAME: gitea-desultd
GITEA__database_USER: gitea-desultd
GITEA__database_PASSWD: "{{ secret_gitea_db_pass }}"
ports:
- 127.0.0.1:2222:22
networks:
- name: web
aliases: [ "gitea" ]
2021-08-07 16:49:24 -05:00
volumes:
- /data/gitea/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
- /var/lib/gitea/.ssh:/data/git/.ssh
tags: [ docker, gitea ]