Skip to content

Commit

Permalink
update docker starter
Browse files Browse the repository at this point in the history
  • Loading branch information
goldpulpy committed Mar 9, 2024
1 parent 47797ae commit c18fea9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ version: '3.3'

services:
telegrambot:
container_name: telegrambot
container_name: geminibot
build: .
volumes:
- ./chat_history.json:/app/chat_history.json
restart: unless-stopped
6 changes: 2 additions & 4 deletions docker.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
$service_name = "telegrambot"
$service_name = "geminibot"

docker rm -f $service_name && docker rmi -f $service_name
docker build -t $service_name .
docker run -d --name $service_name \
-v ./chat_history.json:/app/chat_history.json \
$service_name
docker run -d --name $service_name $service_name

0 comments on commit c18fea9

Please sign in to comment.