问题描述
我面临以下问题:
我试图将FIWARE-Perseo作为docker实例部署到我的Centos 7服务器。尽管perseocore实例可以正常运行,但对于perseo前端而言却并非如此。它已创建,但无法启动。从日志中可以清楚地看出问题出在mongodb上:
I am facing with the following issue:I am trying to deploy FIWARE-Perseo to my Centos 7 server as docker instances. Although the perseocore instance runs without a problem, it doesn't happen the same with the perseo front end. It is created but fails to start. From the logs it is clear that the problem is associated to the mongodb:
在Orion和MongoDB已作为docker实例运行的系统中,我使用了以下链接中的说明:
非常感谢您为我提供的任何帮助。
I have used the instructions from the following link, in a system where Orion and MongoDB were already running as docker instances:Running together with Perseo Core and Orion Context BrokerThank you very much in advance for any help you can provide me.
推荐答案
请确保您使用 PERSEO_MONGO_ENDPOINT
代替 PERSEO_MONGO_HOST
。
无论如何,以下代码是 docker-compose.yml
文件的示例,可用于与orion一起部署perseo:
Anyway, the following code is an example of a docker-compose.yml
file you can use to deploy perseo with orion:
version: "3"
services:
mongo:
image: mongo:3.2
networks:
- main
volumes:
- ./mongodata:/data/db
orion:
image: fiware/orion
depends_on:
- mongo
links:
- mongo
ports:
- "1026:1026"
networks:
main:
aliases:
- orion.docker
command: -dbhost mongo
perseo-core:
image: telefonicaiot/perseo-core:1.1.0
networks:
main:
aliases:
- perseo-core
command: -perseo_fe_url perseo-fe:9090
perseo-fe:
image: telefonicaiot/perseo-fe:1.5.0
ports:
- 9090:9090
networks:
main:
aliases:
- perseo-fe
depends_on:
- perseo-core
environment:
- PERSEO_MONGO_ENDPOINT=mongo
- PERSEO_CORE_URL=http://perseo-core:8080
- PERSEO_LOG_LEVEL=debug
- PERSEO_ORION_URL=http://orion.docker:1026/v1/updateContext
- PERSEO_SMTP_HOST=smtp.gmail.com
- PERSEO_SMTP_PORT=465
- PERSEO_SMTP_SECURE=true
- PERSEO_SMTP_AUTH_USER=XXXXX@XXXXX.com
- PERSEO_SMTP_AUTH_PASS=XXXXX
networks:
main:
external: true
这篇关于Perseo fe docker实例无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!