An error occurred while loading the file. Please try again.
-
Wolfgang Knopki authored0828f351
services:
stream-processing:
build:
context: ./backend
dockerfile: stream_processing/Dockerfile
image: stream-processing
container_name: stream-processing
volumes:
- ./backend/stream_processing:/app/backend/stream_processing
env_file:
- ./backend/.env.docker
restart: unless-stopped
depends_on:
- influxdb2
- mosquitto
backend-django:
build:
context: ./backend
dockerfile: Dockerfile
image: django-backend
container_name: django-backend
env_file:
- ./backend/.env.docker
ports:
- "8000:8000"
volumes:
- ./backend:/app
frontend:
build: ./frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/app
- /app/node_modules
stdin_open: true
tty: true
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto-broker
volumes:
- ./services/mqtt/config:/mosquitto/config
- ./services/mqtt/data:/mosquitto/data
- ./services/mqtt/log:/mosquitto/log
- ./services/mqtt/mosquitto:/mosquitto
ports:
- "1883:1883"
- "8883:8883"
- "9001:9001"
stdin_open: true
tty: true
mqttx-web:
image: emqx/mqttx-web
container_name: mqttx-web
ports:
- "8081:80" # Port 80 im Container auf 8081 lokal mappen
restart: unless-stopped
influxdb2:
image: influxdb:2
ports:
- 8086:8086
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME_FILE: /run/secrets/influxdb2-admin-username
DOCKER_INFLUXDB_INIT_PASSWORD_FILE: /run/secrets/influxdb2-admin-password
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE: /run/secrets/influxdb2-admin-token
DOCKER_INFLUXDB_INIT_ORG: docs
DOCKER_INFLUXDB_INIT_BUCKET: co2-test
secrets:
- influxdb2-admin-username
- influxdb2-admin-password
- influxdb2-admin-token
volumes:
- type: volume
source: influxdb2-data
target: /var/lib/influxdb2
- type: volume
source: influxdb2-config
target: /etc/influxdb2
secrets:
influxdb2-admin-username:
file: ./services/influxdb/influxdb2-admin-username
influxdb2-admin-password:
file: ./services/influxdb/influxdb2-admin-password
influxdb2-admin-token:
file: ./services/influxdb/influxdb2-admin-token
volumes:
influxdb2-data:
influxdb2-config: