mirror of
https://github.com/Balshgit/gpt_chat_bot.git
synced 2026-02-03 11:40:39 +03:00
deploy to production
This commit is contained in:
11
scripts/gpt_chat_bot.service
Normal file
11
scripts/gpt_chat_bot.service
Normal file
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Chat-gpt bot
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
[Service]
|
||||
Restart=always
|
||||
WorkingDirectory=/opt/chat_gpt_bot
|
||||
ExecStart=bash -c "docker compose -f /opt/gpt_chat_bot/docker-compose.yml up"
|
||||
ExecStop=bash -c "docker compose -f /opt/gpt_chat_bot/docker-compose.yml down"
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user