[Unit]
Description=DBIS Core API Server
After=network.target postgresql.service redis.service

[Service]
Type=simple
User=root
WorkingDirectory=/opt/dbis-core
Environment=NODE_ENV=production
EnvironmentFile=/opt/dbis-core/.env
ExecStart=/usr/bin/node dist/index.js
Restart=always
RestartSec=10
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target

