gsuid_core/docker-compose.yml
lilixxs 9513c17b9a
🔧 修改dockerfiledocker-compose文件,使生成镜像变为真正可独立部署镜像 (#104)
* fix: dockerfile 和 docker-compose 文件修改及文档说明,生成的 docker 文件结构变化较大

* fix: dockerfile 和 docker-compose 文件修改及文档说明,生成的 docker 文件结构变化较大

---------

Co-authored-by: lilixxs <lilixxs@email.com>
2025-02-21 04:39:05 +08:00

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