代码拉取完成,页面将自动刷新
同步操作将从 fly-iot/docker-compose 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
version: "3"
networks:
iot-network:
driver: bridge
services:
############### 使用 postgres:13-alpine 版本 ###############
emqx:
image: emqx/emqx:latest
#image: emqx/emqx:v3.1.0
container_name: emqx
environment:
- "EMQX_NODE_NAME=emqx@node.emqx.io"
- "EMQX_CLUSTER__DISCOVERY_STRATEGY=static"
- "EMQX_CLUSTER__STATIC__SEEDS=[emqx@node.emqx.io]"
healthcheck:
test: ["CMD", "/opt/emqx/bin/emqx ctl", "status"]
interval: 5s
timeout: 25s
retries: 5
networks:
iot-network: {}
ports:
- 1883:1883
- 8083:8083
- 8084:8084
- 8883:8883
- 18083:18083
#volumes:
# - ./data/emqx:/opt/emqx/data
postgres:
image: postgres:13-alpine
container_name: postgres
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "postgres", "-U", "root" ]
timeout: 45s
interval: 10s
retries: 10
restart: always
environment:
- POSTGRES_USER=actorcloud
- POSTGRES_PASSWORD=public
- APP_DB_USER=actorcloud
- APP_DB_PASS=public
- APP_DB_NAME=actorcloud
# 设置 postgres data 文件存储路径。
volumes:
- ./data/postgres:/var/lib/postgresql/data
networks:
iot-network: {}
ports:
- 5432:5432
############### 使用 iot-backend-python 版本 ###############
iot-backend-python:
image: flyiotadm/fly-iot-backend-python:v1.0
container_name: fly-iot-backend-python
networks:
iot-network: {}
ports:
- "7000:7000"
- "7001:7001"
- "7002:7002"
volumes:
- "./python-conf/config-postgres.yml:/data/config/config.yml"
depends_on:
- emqx
- postgres
restart: always
############### 使用 iot-backend-python 版本 ###############
iot-frontend:
image: flyiotadm/fly-iot-frontend:v1.0
container_name: fly-iot-frontend
networks:
iot-network: {}
ports:
- "8080:8080"
environment:
- VUE_APP_SERVER=http://iot-backend-python:7000
#volumes:
# - "../fly-iot-frontend/default.conf:/etc/nginx/conf.d/default.conf"
depends_on:
- iot-backend-python
restart: always
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。