Update to InfluxDB 2.0 and update all interfaces to work with it. MAC has been deprecated, since current `influxdb2` doesn't support non built-in types for read/write into the DB. Co-authored-by: Felipe Diniello <felipediniello@pm.me> Reviewed-on: #1
35 lines
897 B
YAML
35 lines
897 B
YAML
version: "3"
|
|
|
|
services:
|
|
postgres:
|
|
image: "postgres:latest"
|
|
container_name: "postgres"
|
|
ports:
|
|
- 5432:5432
|
|
environment:
|
|
- POSTGRES_USER=kairo
|
|
- POSTGRES_PASSWORD=AJzYhFltZXRiGQ
|
|
- POSTGRES_DB=kairoXYZ_db
|
|
# volumes:
|
|
# - ./data/postgres:/var/lib/postgresql/data/
|
|
|
|
mqtt_broker:
|
|
image: "eclipse-mosquitto:latest"
|
|
container_name: "mosquitto"
|
|
network_mode: host
|
|
|
|
influx:
|
|
container_name: "influxdb"
|
|
tmpfs:
|
|
- /var/lib/influxdb
|
|
ports:
|
|
- 8086:8086
|
|
image: "influxdb:latest"
|
|
environment:
|
|
- DOCKER_INFLUXDB_INIT_MODE=setup
|
|
- DOCKER_INFLUXDB_INIT_USERNAME=user
|
|
- DOCKER_INFLUXDB_INIT_PASSWORD=Lkj9s2iAnd7Gxg
|
|
- DOCKER_INFLUXDB_INIT_ORG=kario
|
|
- DOCKER_INFLUXDB_INIT_BUCKET=db0
|
|
- DOCKER_INFLUXDB_INIT_ADMIN_TOKEN=82GAOBcdQoPnFNp_aew3DPffg44ihr4-lxs2BMGQ7RJ6nZyqSAFerX-WaHgLC47hTI23LgOauEfyTU_FKT0SpQ==
|