Improve Pixelfed resource configuration and translate waiting message

- Updated Pixelfed worker and application CPU/RAM limits
- Added Redis memory reservation and limit
- Added pids_limit for worker
- Translated script message from German to English
- Reference: https://chatgpt.com/share/69295cad-0398-800f-9604-953c2f5a833b
This commit is contained in:
2025-11-28 09:26:48 +01:00
parent 03a8819483
commit 0287652774
2 changed files with 10 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ if __name__ == "__main__":
if has_healthcheck(container):
status = get_health_status(container)
while status != 'healthy':
print(f"Warte auf Container {container}, Status '{status}'...")
print(f"Wait for Container {container}, Status '{status}'...")
time.sleep(1)
status = get_health_status(container)

View File

@@ -28,6 +28,8 @@ docker:
services:
redis:
enabled: true
mem_reservation: 0.1g
mem_limit: 0.2g
database:
enabled: true
pixelfed:
@@ -36,7 +38,14 @@ docker:
name: "pixelfed"
backup:
no_stop_required: true
cpus: 0.75
mem_reservation: 0.5g
mem_limit: 0.75g
worker:
name: "pixelfed_worker"
cpus: 1.0
mem_reservation: 0.75g
mem_limit: 1g
pids_limit: 512
volumes:
data: "pixelfed_data"