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

27 lines
579 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-im(即时通讯,容器内 :8101,不对外)
#
# 前置:docker network create opc-network;镜像已构建(opc-im:latest
# 用法:cd serverrun/im && docker compose up -d
name: opc-im
services:
opc-im:
image: opc-im:latest
container_name: opc-im
restart: unless-stopped
env_file:
- ../.env
# im-service/serverdata → 容器内 /app/serverdata
volumes:
- ../../../im-service/serverdata:/app/serverdata
networks:
- opc-network
networks:
opc-network:
name: opc-network
external: true