[Unit]
Description=Odoo SKEEN (skeen-odoo venv)
After=network.target postgresql.service docker.service
Wants=postgresql.service

[Service]
Type=simple
User=root
WorkingDirectory=/root/skeen-odoo
Environment=SUPABASE_URL=http://192.168.10.114:8000
Environment=SUPABASE_SERVICE_ROLE_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaXNzIjoic3VwYWJhc2UiLCJpYXQiOjE2NDE3NjkyMDAsImV4cCI6MTc5OTUzNTYwMH0.XA05Pgn-gkEKaZEaHYFc9DAyP45uNJdsl8DL9axUxbc
Environment=WACRM_API_URL=http://localhost:3000
Environment=WACRM_API_KEY=wacrm_live_1m2xkLq9S75b8AWGB4a_tPPiFmJlJJ7wJHAPi9BZWcs
Environment=HERMES_BRIDGE_URL=http://localhost:8090
ExecStart=/root/odoo-venv/bin/python /root/skeen-odoo/odoo-bin -c /root/skeen-odoo/odoo.conf --logfile=/tmp/odoo.log
Restart=always
RestartSec=5
TimeoutStartSec=120

[Install]
WantedBy=multi-user.target
