WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.51k stars 333 forks source link

无法启动 #151

Open 278213568 opened 1 year ago

278213568 commented 1 year ago

sudo docker-compose up --pull always -d Builds, (re)creates, starts, and attaches to containers for a service.

Unless they are already running, this command also starts any linked services.

The docker-compose up command aggregates the output of each container. When the command exits, all containers are stopped. Running docker-compose up -d starts the containers in the background and leaves them running.

If there are existing containers for a service, and the service's configuration or image was changed after the container's creation, docker-compose up picks up the changes by stopping and recreating the containers (preserving mounted volumes). To prevent Compose from picking up changes, use the --no-recreate flag.

If you want to force Compose to stop and recreate all containers, use the --force-recreate flag.

Usage: up [options] [--scale SERVICE=NUM...] [--] [SERVICE...]

如果不加 --pull always 可以正常启动, 但是后面如果要更新代码, 是不是 不可以了呢?

278213568 commented 1 year ago

分两步走。 直接 docker-compose pull 拉代码 然后 docker-compose up -d 启动

WongSaang commented 1 year ago

感谢反馈,已更新 shell