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 }}"