27 lines
638 B
YAML
27 lines
638 B
YAML
# 单独启动 opc-compute(算力微服务,容器内 :3000,不对外)
|
||
#
|
||
# 前置:docker network create opc-network;镜像已构建(opc-compute:latest)
|
||
# 用法:cd serverrun/compute && docker compose up -d
|
||
name: opc-compute
|
||
|
||
services:
|
||
opc-compute:
|
||
image: opc-compute:latest
|
||
container_name: opc-compute
|
||
restart: unless-stopped
|
||
|
||
env_file:
|
||
- ../.env
|
||
|
||
# compute/serverdata → 容器内 /app/serverdata(含 SQLite compute.db)
|
||
volumes:
|
||
- ../../../compute/serverdata:/app/serverdata
|
||
|
||
networks:
|
||
- opc-network
|
||
|
||
networks:
|
||
opc-network:
|
||
name: opc-network
|
||
external: true
|