Update system api
This commit is contained in:
31
rpi/compose.yml
Normal file
31
rpi/compose.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
system-api:
|
||||
build: .
|
||||
container_name: "system-api"
|
||||
ports:
|
||||
- "5000:5000"
|
||||
depends_on:
|
||||
- mosquitto
|
||||
environment:
|
||||
- LOCAL_BROKER_USERNAME=system
|
||||
- LOCAL_BROKER_PASSWORD=hepl
|
||||
- LOCAL_BROKER_ADDRESS=system-broker
|
||||
- LOCAL_BROKER_PORT=1883
|
||||
- API_BROKER_ADDRESS=192.168.15.125
|
||||
- API_BROKER_PORT=1883
|
||||
|
||||
mosquitto:
|
||||
image: eclipse-mosquitto:latest
|
||||
container_name: "system-broker"
|
||||
ports:
|
||||
- "1883:1883"
|
||||
- "8883:8883"
|
||||
command: ["sh", "/mosquitto/config/init-mosquitto.sh"]
|
||||
volumes:
|
||||
- ./mosquitto/config:/mosquitto/config
|
||||
- ./mosquitto/data:/mosquitto/data
|
||||
- ./mosquitto/log:/mosquitto/log
|
||||
- ./mosquitto/certs:/mosquitto/certs
|
||||
|
||||
Reference in New Issue
Block a user