mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-06-03 05:59:47 +08:00
* fix: dockerfile 和 docker-compose 文件修改及文档说明,生成的 docker 文件结构变化较大 * fix: dockerfile 和 docker-compose 文件修改及文档说明,生成的 docker 文件结构变化较大 --------- Co-authored-by: lilixxs <lilixxs@email.com>
16 lines
550 B
YAML
16 lines
550 B
YAML
services:
|
|
gsuid-core:
|
|
build:
|
|
context: .
|
|
container_name: gsuidcore
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
ports:
|
|
- 18765:8765
|
|
volumes:
|
|
# 仅映射需要的文件夹,如果映射所有文件夹则容器内的文件会被覆盖
|
|
# 如需访问这种方式部署的项目根目录,需要通过 docker exec -it <容器id> bash 进入,进入后默认的 /app/gsuid_core 即为插件根目录
|
|
- /opt/gscore_data:/gsuid_core/data
|
|
- /opt/gscore_plugins:/gsuid_core/plugins
|