docker: make compose work with cgroups (v2), conversion scripts/docs

This commit is contained in:
j4n
2026-02-16 11:31:42 +01:00
parent 557ad2ed3c
commit ce65866595
4 changed files with 145 additions and 5 deletions

View File

@@ -3,12 +3,12 @@ services:
build:
context: ./
dockerfile: docker/chatmail_relay.dockerfile
tags:
- chatmail-relay:latest
image: chatmail-relay:latest
restart: unless-stopped
container_name: chatmail
cgroup: host # required for systemd
# Required for systemd — use only one of the following:
cgroup: host # compose v2 only
# privileged: true # compose v1 (not tested)
tty: true # required for logs
tmpfs: # required for systemd
- /tmp