feat(deploy): add deployment configuration for Liara with Docker and Supervisor

This commit is contained in:
hamed
2026-06-29 15:03:30 +03:30
parent 75dcf0d2a8
commit efee966efb
6 changed files with 528 additions and 6 deletions
+27
View File
@@ -38,3 +38,30 @@ stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
# Message consumers. On Coolify these were separate compose services; Liara has
# no docker-compose, so they run here inside the single Docker app. --time-limit
# makes each consumer exit cleanly every hour; autorestart brings it back (guards
# against memory growth / stale DB+Redis connections). Mirrors the compose commands.
[program:worker-async]
command=php bin/console messenger:consume async --time-limit=3600 --memory-limit=128M -v
autorestart=true
priority=30
# messenger handles SIGTERM gracefully — finish the in-flight message, then exit.
stopsignal=TERM
stopwaitsecs=30
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:worker-scheduler]
command=php bin/console messenger:consume scheduler_default --time-limit=3600 -v
autorestart=true
priority=30
stopsignal=TERM
stopwaitsecs=30
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0