`docker compose run` creates a new container on each execution, which accumulated (`<env>-cron-run-<id>`). Use `--rm` to remove it at the end. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VnXP3D1srf5k8MrtPFUz93
9 lines
302 B
Desktop File
9 lines
302 B
Desktop File
[Unit]
|
|
Description=Execute send-short-messages for chill with environment %i
|
|
|
|
[Service]
|
|
User={{ as_user }}
|
|
ExecStart=/usr/bin/docker compose --file {{ install_dir }}/%i/compose.yaml run --rm cron bin/console chill:calendar:send-short-messages
|
|
Type=simple
|
|
# execute maximum 30 minutes
|
|
RuntimeMaxSec=1800 |