This commit is contained in:
parent
5027bac48b
commit
446cb6f611
@ -1,3 +1,5 @@
|
|||||||
|
version: '3.4'
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
cnc:
|
cnc:
|
||||||
external: false
|
external: false
|
||||||
@ -8,7 +10,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=cnc-service
|
- POSTGRES_USER=cnc-service
|
||||||
- POSTGRES_PASSWORD=cnc-service
|
- POSTGRES_PASSWORD=cnc-service-supersecret
|
||||||
- POSTGRES_DB=cnc-service
|
- POSTGRES_DB=cnc-service
|
||||||
networks:
|
networks:
|
||||||
- cnc
|
- cnc
|
||||||
@ -29,6 +31,20 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- activemq
|
- activemq
|
||||||
- postgres
|
- postgres
|
||||||
|
environment:
|
||||||
|
SENTRY_DSN: https://8774ab5831814316a6aa33d07f94281c@sentry.kmlabz.com/8
|
||||||
|
RELEASE_ID: compose
|
||||||
|
CNC_SERVICE_RELEASEMODE: dev
|
||||||
|
CNC_POSTGRES_HOSTNAME: postgres
|
||||||
|
CNC_POSTGRES_USERNAME: cnc-service
|
||||||
|
CNC_POSTGRES_PASSWORD: cnc-service-supersecret
|
||||||
|
CNC_POSTGRES_DB: cnc-service
|
||||||
|
CNC_MQTT_HOSTNAME: activemq
|
||||||
|
CNC_MQTT_PORT: "1883"
|
||||||
|
CNC_MQTT_USERNAME: artemis
|
||||||
|
CNC_MQTT_PASSWORD: artemis
|
||||||
|
CNC_MQTT_STATUS_TOPIC: status
|
||||||
|
CNC_MQTT_COMMAND_TOPIC: command
|
||||||
networks:
|
networks:
|
||||||
- cnc
|
- cnc
|
||||||
ports:
|
ports:
|
||||||
|
@ -8,4 +8,5 @@ marshmallow
|
|||||||
marshmallow-sqlalchemy
|
marshmallow-sqlalchemy
|
||||||
flask-marshmallow
|
flask-marshmallow
|
||||||
paho-mqtt
|
paho-mqtt
|
||||||
flask-mqtt
|
flask-mqtt
|
||||||
|
psycopg2
|
||||||
|
@ -27,8 +27,8 @@ POSTGRES_DB = os.getenv("CNC_POSTGRES_DB", "cnc-service")
|
|||||||
|
|
||||||
MQTT_HOSTNAME = os.getenv("CNC_MQTT_HOSTNAME", "localhost")
|
MQTT_HOSTNAME = os.getenv("CNC_MQTT_HOSTNAME", "localhost")
|
||||||
MQTT_PORT = os.getenv("CNC_MQTT_PORT", "1883")
|
MQTT_PORT = os.getenv("CNC_MQTT_PORT", "1883")
|
||||||
MQTT_USERNAME = os.getenv("CNC_MQTT_USERNAME", "guard-service")
|
MQTT_USERNAME = os.getenv("CNC_MQTT_USERNAME", "cnc-service")
|
||||||
MQTT_PASSWORD = os.getenv("CNC_MQTT_PASSWORD", "guard-service")
|
MQTT_PASSWORD = os.getenv("CNC_MQTT_PASSWORD", "cnc-service")
|
||||||
MQTT_STATUS_TOPIC = os.getenv("CNC_MQTT_STATUS_TOPIC", "guard-service")
|
MQTT_STATUS_TOPIC = os.getenv("CNC_MQTT_STATUS_TOPIC", "cnc-service")
|
||||||
MQTT_COMMAND_TOPIC = os.getenv("CNC_MQTT_COMMAND_TOPIC", "guard-service")
|
MQTT_COMMAND_TOPIC = os.getenv("CNC_MQTT_COMMAND_TOPIC", "cnc-service")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user