deploy to production

This commit is contained in:
2023-09-26 20:12:40 +03:00
parent d6afab4ee4
commit eb36036c04
2 changed files with 3 additions and 2 deletions

View 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