63 lines
1.2 KiB
YAML
63 lines
1.2 KiB
YAML
version: "3.9"
|
|
|
|
x-environment: &default-env
|
|
MQTT_BROKER: "172.23.1.102"
|
|
MQTT_PORT: 1883
|
|
REDIS_HOST: "172.23.1.116"
|
|
REDIS_PORT: 6379
|
|
REDIS_DB: 8
|
|
|
|
services:
|
|
|
|
ui:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/ui/Dockerfile
|
|
container_name: ui
|
|
environment:
|
|
UI_PORT: 8002
|
|
API_BASE: "http://172.19.1.11:8001"
|
|
BASE_PATH: "/"
|
|
ports:
|
|
- "8002:8002"
|
|
depends_on:
|
|
- api
|
|
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/api/Dockerfile
|
|
container_name: api
|
|
environment:
|
|
<<: *default-env
|
|
REDIS_CHANNEL: "ui:updates"
|
|
volumes:
|
|
- ./config:/app/config:ro
|
|
ports:
|
|
- "8001:8001"
|
|
depends_on:
|
|
- abstraction
|
|
|
|
abstraction:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/abstraction/Dockerfile
|
|
container_name: abstraction
|
|
environment:
|
|
<<: *default-env
|
|
volumes:
|
|
- ./config:/app/config:ro
|
|
|
|
rules:
|
|
build:
|
|
context: .
|
|
dockerfile: apps/rules/Dockerfile
|
|
container_name: rules
|
|
environment:
|
|
<<: *default-env
|
|
RULES_CONFIG: "/app/config/rules.yaml"
|
|
volumes:
|
|
- ./config:/app/config:ro
|
|
depends_on:
|
|
- abstraction
|