From d7fe8eb263d431924c94df881a989df3f693aba3 Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer <22202402+sporqist@users.noreply.github.com> Date: Fri, 5 Jan 2024 18:03:53 +0100 Subject: [PATCH] restart: unless-stopped --- templates/docker-compose.yaml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/docker-compose.yaml.j2 b/templates/docker-compose.yaml.j2 index 51b4258..b844b7f 100644 --- a/templates/docker-compose.yaml.j2 +++ b/templates/docker-compose.yaml.j2 @@ -13,7 +13,7 @@ networks: services: gitea: image: gitea/gitea:{{ gitea_vars['version'] }}-rootless - restart: always + restart: unless-stopped volumes: - ./data:/var/lib/gitea - ./config:/etc/gitea @@ -31,7 +31,7 @@ services: db: image: "{{ gitea_vars['database']['db_type'] }}:{{ gitea_vars['database']['docker_image_tag'] }}" - restart: always + restart: unless-stopped environment: - "MYSQL_DATABASE={{ gitea_vars.database.name }}" - "MYSQL_USER={{ gitea_vars.database.user }}"