set user and group for container cron

This commit is contained in:
thedarty committed 2026-10-09 16:50:19 +02:00
1 parent 5b56340695
commit e2a17c795a
1 file changed
+4
+4
View File
@@ -38,8 +38,12 @@ services:
image: alpine:latest image: alpine:latest
container_name: podcast-cron container_name: podcast-cron
restart: unless-stopped restart: unless-stopped
depends_on:
init-configuration:
condition: service_completed_successfully
environment: environment:
TZ: ${TZ} TZ: ${TZ}
user: "${PUID}:${PGID}"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
command: > command: >