Update mygit/docker-compose.yml

Change the restart option from "on failure" to "unless-stopped"
This commit is contained in:
2026-02-04 14:52:14 +00:00
parent a248f22b54
commit fecb5cacab

View File

@@ -11,7 +11,7 @@ services:
- GITEA__database__PASSWD=gitea - GITEA__database__PASSWD=gitea
- ENABLE_PUSH_CREATE_USER=true - ENABLE_PUSH_CREATE_USER=true
- ENABLE_PUSH_CREATE_ORG=true - ENABLE_PUSH_CREATE_ORG=true
restart: on-failure restart: unless-stopped
volumes: volumes:
- /mnt/cephfs/docker/gitea:/data - /mnt/cephfs/docker/gitea:/data
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
@@ -26,7 +26,7 @@ services:
db: db:
image: docker.io/library/postgres:14 image: docker.io/library/postgres:14
restart: on-failure restart: unless-stopped
environment: environment:
- POSTGRES_USER=gitea - POSTGRES_USER=gitea
- POSTGRES_PASSWORD=gitea - POSTGRES_PASSWORD=gitea