containers: add gitea user
This commit is contained in:
parent
9b749316ff
commit
167c01c04e
@ -11,6 +11,12 @@
|
|||||||
name: docker
|
name: docker
|
||||||
group: docker
|
group: docker
|
||||||
|
|
||||||
|
- name: Create Gitea user
|
||||||
|
user:
|
||||||
|
name: gitea
|
||||||
|
register: user_gitea
|
||||||
|
when: '"gitea" in groups'
|
||||||
|
|
||||||
- name: Create docker-compose directory
|
- name: Create docker-compose directory
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ docker_compose_dir }}"
|
path: "{{ docker_compose_dir }}"
|
||||||
|
@ -11,6 +11,8 @@ services:
|
|||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
environment:
|
environment:
|
||||||
- USER=gitea
|
- USER=gitea
|
||||||
|
- USER_UID={{ user_gitea.uid }}
|
||||||
|
- USER_GID={{ user_gitea.group }}
|
||||||
- GITEA__server__SSH_PORT=2499
|
- GITEA__server__SSH_PORT=2499
|
||||||
- GITEA__server__SSH_LISTEN_PORT=2499
|
- GITEA__server__SSH_LISTEN_PORT=2499
|
||||||
- GITEA__service__DISABLE_REGISTRATION=true
|
- GITEA__service__DISABLE_REGISTRATION=true
|
||||||
|
Loading…
Reference in New Issue
Block a user