test server
This commit is contained in:
20
ai-server-webui.service
Normal file
20
ai-server-webui.service
Normal file
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=AI Server Web UI
|
||||
Requires=docker.service ollama.service
|
||||
After=docker.service ollama.service
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
WorkingDirectory=/opt/ai-server
|
||||
ExecStart=/usr/bin/docker compose up -d
|
||||
ExecStop=/usr/bin/docker compose down
|
||||
ExecReload=/usr/bin/docker compose restart
|
||||
TimeoutStartSec=300
|
||||
TimeoutStopSec=120
|
||||
User=root
|
||||
Group=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user