containers: add gitea user

This commit is contained in:
dogeystamp 2023-09-02 18:20:46 -04:00
parent 9b749316ff
commit 167c01c04e
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 8 additions and 0 deletions

View File

@ -11,6 +11,12 @@
name: docker
group: docker
- name: Create Gitea user
user:
name: gitea
register: user_gitea
when: '"gitea" in groups'
- name: Create docker-compose directory
ansible.builtin.file:
path: "{{ docker_compose_dir }}"

View File

@ -11,6 +11,8 @@ services:
image: gitea/gitea:latest
environment:
- USER=gitea
- USER_UID={{ user_gitea.uid }}
- USER_GID={{ user_gitea.group }}
- GITEA__server__SSH_PORT=2499
- GITEA__server__SSH_LISTEN_PORT=2499
- GITEA__service__DISABLE_REGISTRATION=true