Files
server-core/serverrun/compute/docker-compose.yml
T

27 lines
638 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 单独启动 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