mirror of
https://github.com/AIDotNet/AntSK.git
synced 2026-02-17 22:10:14 +08:00
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
# 非 host 版本, 不使用本机代理
|
||
version: '3.8'
|
||
services:
|
||
antskpg:
|
||
image: registry.cn-hangzhou.aliyuncs.com/xuzeyu91/pg:v0.5.0
|
||
container_name: antskpg
|
||
restart: always
|
||
ports: # 生产环境建议不要暴露
|
||
- 5432:5432
|
||
networks:
|
||
- antsk
|
||
environment:
|
||
# 这里的配置只有首次运行生效。修改后,重启镜像是不会生效的。需要把持久化数据删除再重启,才有效果
|
||
- POSTGRES_USER=username
|
||
- POSTGRES_PASSWORD=password
|
||
- POSTGRES_DB=antsk
|
||
volumes:
|
||
- ./pg/data:/var/lib/postgresql/data
|
||
antsk:
|
||
container_name: antsk
|
||
image: registry.cn-hangzhou.aliyuncs.com/xuzeyu91/antsk:v0.3.6
|
||
# 如果需要pytorch环境需要使用下面这个镜像,镜像比较大
|
||
# image: registry.cn-hangzhou.aliyuncs.com/xuzeyu91/antsk:p0.3.6
|
||
ports:
|
||
- 5000:5000
|
||
networks:
|
||
- antsk
|
||
depends_on:
|
||
- antskpg
|
||
restart: always
|
||
environment:
|
||
- ASPNETCORE_URLS=http://*:5000
|
||
volumes:
|
||
- ./appsettings.json:/app/appsettings.json # 本地配置文件 需要放在同级目录
|
||
- /AntSK/model:/app/model
|
||
- /AntSK/model:/root/.cache/modelscope/hub/AI-ModelScope # LLamaFactory模型文件
|
||
networks:
|
||
antsk:
|