Postal running image size growing and filling all the disk space #3234
-
Describe the bugPostal running for few weeks can take all the disk space and put the server down. To Reproduce
Expected behaviourDisk should be emptied at regular periods and never be fully filled by Postal ScreenshotsThe screenshot shows 10 days of Postal on a 64 GB drive. Environment details
Additional information/contextI update my services:
web:
image: ghcr.io/postalserver/postal:3.3.4
command: postal web-server
network_mode: host
volumes:
- /opt/postal/config:/config
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "2"
smtp:
image: ghcr.io/postalserver/postal:3.3.4
command: postal smtp-server
network_mode: host
cap_add:
- NET_BIND_SERVICE
volumes:
- /opt/postal/config:/config
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "2"
worker:
image: ghcr.io/postalserver/postal:3.3.4
command: postal worker
network_mode: host
volumes:
- /opt/postal/config:/config
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "2"
runner:
profiles: ["tools"]
image: ghcr.io/postalserver/postal:3.3.4
command: postal
network_mode: host
volumes:
- /opt/postal/config:/config
logging:
driver: "json-file"
options:
max-size: "500m"
max-file: "2" Below 10 days of drive usage after the configuration update. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is explained here: https://docs.postalserver.io/features/logging#limiting-the-size-of-logs
{
"log-driver": "local",
"log-opts": {
"max-size": "100m"
}
} |
Beta Was this translation helpful? Give feedback.
This is explained here: https://docs.postalserver.io/features/logging#limiting-the-size-of-logs