42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
[supervisord]
|
|
nodaemon=true
|
|
user=root
|
|
logfile=/var/log/supervisor/supervisord.log
|
|
pidfile=/var/run/supervisord.pid
|
|
|
|
[program:postgresql]
|
|
command=/usr/lib/postgresql/15/bin/postgres -D /var/lib/postgresql/data
|
|
user=postgres
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
priority=1
|
|
|
|
[program:dataplane]
|
|
command=/app/.venv/bin/python -m memora.web.server --host 0.0.0.0 --port 8080
|
|
directory=/app/memora
|
|
environment=PATH="/app/.venv/bin:%(ENV_PATH)s",DATABASE_URL="postgresql://postgres:postgres@localhost:5432/memora",EMBEDDING_MODEL_NAME="sentence-transformers/all-MiniLM-L6-v2",EMBEDDING_DIM="384"
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
startsecs=10
|
|
priority=10
|
|
|
|
[program:control-plane]
|
|
command=/usr/bin/node /app/control-plane/server.js
|
|
directory=/app/control-plane
|
|
environment=NODE_ENV="production",PORT="3000",HOSTNAME="0.0.0.0",DATAPLANE_API_URL="http://localhost:8080"
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
startsecs=5
|
|
priority=20
|