[Unit]
Description=Director API
After=network.target postgresql.service redis-server.service
Requires=postgresql.service redis-server.service

[Service]
Type=simple
User=joe
Group=joe
WorkingDirectory=/data/director/app/api
ExecStart=/data/director/app/api/director-api
Environment=GIN_MODE=release
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
