Added: Readme

Added: Restart policy
This commit is contained in:
tanshu
2020-04-20 18:13:06 +05:30
parent 518871ff16
commit fc8a7795e6
10 changed files with 89 additions and 4 deletions

View File

@ -29,6 +29,7 @@
name: "{{ container_name }}"
image: "{{ container_image }}"
state: started
restart_policy: "unless-stopped"
env:
USER_UID: "{{ getent_passwd[user][1] }}"
USER_GID: "{{ getent_passwd[user][2] }}"

View File

@ -12,7 +12,7 @@
user:
name: "{{ user }}"
comment: Git user
create_home: no
create_home: yes
- name: Pull Gitea image
docker_image:
@ -29,6 +29,7 @@
name: "{{ container_name }}"
image: "{{ container_image }}"
state: started
restart_policy: "unless-stopped"
env:
USER_UID: "{{ getent_passwd[user][1] }}"
USER_GID: "{{ getent_passwd[user][2] }}"