chatgpt_telegram_bot icon indicating copy to clipboard operation
chatgpt_telegram_bot copied to clipboard

How to update easily?

Open CCCAUCHY opened this issue 2 years ago • 3 comments

I am not familiar with Docker. Is it sufficient to update this project by first cloning the repository with git clone and then building the Docker images with docker-compose --build?

It seems if I remove the directory first without docker-compose down then the docker can not be kill forever

CCCAUCHY avatar Mar 06 '23 09:03 CCCAUCHY

Command docker-compose up --build first takes down running docker containers and then setups new ones

karfly avatar Mar 06 '23 11:03 karfly

if you already have the git repo in the folder remember to also do a git pull before the docker-compose command

madiele avatar Mar 06 '23 13:03 madiele

You can use docker-compose up --build to only build the newest image (if you have changed code) or then use docker-compose up -d to build and then run the image. If you are not familiar with docker platform, run it with setup python:3.8, mongodb. Run docker-compose down in the folder containing docker-compose.yml to down all service-container declared in this file.

im6h avatar Mar 07 '23 03:03 im6h