-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
46 lines (41 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
services:
devcontainer:
# Build the image from the existing devcontainer setup
image: mcr.microsoft.com/devcontainers/python:3
# The current working directory is mounted automatically
volumes:
- ..:/workspaces/PySignalduino
# Use the existing settings from devcontainer.json
# Overriding the entrypoint is necessary when using a non-Compose devcontainer base image
command: /bin/bash -c "sleep infinity"
# Environment variables from .devcontainer/devcontainer.env
env_file:
- ./devcontainer.env
# This ensures services in the compose file can be reached by their service name
# The default bridge network is sufficient for this purpose
mqtt:
image: eclipse-mosquitto:latest
container_name: mosquitto-dev-broker
#ports:
# Expose port 1883 on the host, so other local clients can also connect if needed
#- "1883:1883"
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log
command: mosquitto -c /mosquitto/config/mosquitto.conf
restart: unless-stopped
fhem:
image: ghcr.io/fhem/fhem-minimal-docker:5-bookworm
container_name: fhem-dev-server
ports:
- '38083:8083' # Expose FHEM web interface on port 38083
environment:
- CONFIGTYPE=fhem_signalduino_example.cfg
- FHEM_PERM_DIR=0777
- FHEM_PERM_FILE=0777
volumes:
- ./fhem-data:/opt/fhem
depends_on:
- mqtt
restart: unless-stopped