chore(compose): rotacja logow kontenerow (50m x 3), pelny dysk 2026-09-14
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
be6c18b3b4
commit
bd8af5f44c
1 changed files with 11 additions and 0 deletions
|
|
@ -1,5 +1,14 @@
|
|||
# Rotacja logow kontenerow: json-file bez limitu urosl na prodzie do 12 GB i zapchal
|
||||
# dysk (2026-09-14), Postgres nie mogl zakladac plikow tymczasowych.
|
||||
x-logging: &default-logging
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "3"
|
||||
|
||||
services:
|
||||
db:
|
||||
logging: *default-logging
|
||||
image: postgres:16-alpine
|
||||
shm_size: 1g # parallel workers (np. seo.sitemap_index) potrzebują >64MB /dev/shm
|
||||
environment:
|
||||
|
|
@ -20,6 +29,7 @@ services:
|
|||
restart: unless-stopped
|
||||
|
||||
api:
|
||||
logging: *default-logging
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
|
@ -43,6 +53,7 @@ services:
|
|||
restart: unless-stopped
|
||||
|
||||
worker:
|
||||
logging: *default-logging
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue