Skip to content

Commit 3cde1f3

Browse files
committed
docker-compose: PYTHONUNBUFFERED=1
almost zero performance impact with podman in kitty
1 parent 4915b14 commit 3cde1f3

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

docs/examples/docker/basic-docker-compose/docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ services:
1010
- ./:/cfg:z
1111
- /path/to/your/fileshare/top/folder:/w:z
1212

13-
# enabling mimalloc by replacing "NOPE" with "2" will make some stuff twice as fast, but everything will use twice as much ram:
1413
environment:
1514
LD_PRELOAD: /usr/lib/libmimalloc-secure.so.NOPE
15+
# enable mimalloc by replacing "NOPE" with "2" for a nice speed-boost (will use twice as much ram)
16+
17+
PYTHONUNBUFFERED: 1
18+
# ensures log-messages are not delayed (but can reduce speed a tiny bit)
1619

1720
stop_grace_period: 15s # thumbnailer is allowed to continue finishing up for 10s after the shutdown signal
1821
healthcheck:

docs/examples/docker/idp-authelia-traefik/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ services:
2727
LD_PRELOAD: /usr/lib/libmimalloc-secure.so.NOPE
2828
# enable mimalloc by replacing "NOPE" with "2" for a nice speed-boost (will use twice as much ram)
2929

30+
PYTHONUNBUFFERED: 1
31+
# ensures log-messages are not delayed (but can reduce speed a tiny bit)
32+
3033
authelia:
3134
image: authelia/authelia:v4.38.0-beta3 # the config files in the authelia folder use the new syntax
3235
container_name: idp_authelia

docs/examples/docker/idp-authentik-traefik/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ services:
2727
LD_PRELOAD: /usr/lib/libmimalloc-secure.so.NOPE
2828
# enable mimalloc by replacing "NOPE" with "2" for a nice speed-boost (will use twice as much ram)
2929

30+
PYTHONUNBUFFERED: 1
31+
# ensures log-messages are not delayed (but can reduce speed a tiny bit)
32+
3033
traefik:
3134
image: traefik:v2.11
3235
container_name: traefik

0 commit comments

Comments
 (0)