Docker inactive user logout / timeout - nextcloud aio

I am not clear how to configure a logout / time out.

I noticed when I log in I will stay logged in for days unless I manually log out.

Can I set a inactive log out time ?

I was experimenting with user_oidc app and I’m under impressing following settings result in user auto-logout after 15min (session_lifetime=900)

# check running values
occ config:system:get auto_logout
occ config:system:get session_keepalive
occ config:system:get session_lifetime
occ config:system:get remember_login_cookie_lifetime
# set session lifetime to 15min
occ config:system:set session_lifetime --value=900
occ config:system:set remember_login_cookie_lifetime --value=0
occ config:system:set session_keepalive --value=false
occ config:system:set auto_logout --value=true

for official docker use this syntax

docker exec --user www-data <nextcloud app container> php occ config:system:get auto_logout
docker exec --user www-data <nextcloud app container> php occ config:system:get session_keepalive
docker exec --user www-data <nextcloud app container> php occ config:system:get session_lifetime
docker exec --user www-data <nextcloud app container> php occ config:system:get remember_login_cookie_lifetime
docker exec --user www-data <nextcloud app container> php occ config:system:set session_lifetime --value=900
docker exec --user www-data <nextcloud app container> php occ config:system:set remember_login_cookie_lifetime --value=0
docker exec --user www-data <nextcloud app container> php occ config:system:set session_keepalive --value=false
docker exec --user www-data <nextcloud app container> php occ config:system:set auto_logout --value=true

I am trying

environment:
  - APACHE_PORT=11000
  - NEXTCLOUD_MOUNT=/mnt/sdb/mymedia
  - NEXTCLOUD_MAX_TIME=3600
  - NEXTCLOUD_MEMORY_LIMIT=512M
  - NEXTCLOUD_DATADIR=/mnt/sdb/nextcloud
  - session_lifetime=3600

This is not how this works.
See the occ commands above.

Also see GitHub - nextcloud/all-in-one: The official Nextcloud installation method. Provides easy deployment and maintenance with most features included in this one Nextcloud instance.