-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.development.yaml
More file actions
104 lines (91 loc) · 3.28 KB
/
docker-compose.development.yaml
File metadata and controls
104 lines (91 loc) · 3.28 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
x-devices-common: &devices-common
# Setting network_mode to "host" let's the container access the host network
# and is fundamental to let the device send updates to the host.
# Another way would be to run the server inside a container on the same virtual
# network as the device but this would make development/debuggin much harder.
# This feature must be enabled in Docker Desktop under Settings -> Resources ->
# Network -> Enable host networking
# This option does not allow to publish a different port than the one exposed
# by the container and so it should provide a way to customize that.
network_mode: host
pull_policy: always
x-devices-common-environment: &devices-common-environment
LAN_HOSTNAME: localhost # Since the network mode is "host" every device is reachable as localhost
SERVER_DISCOVERY_PORT: 30000 # Port on which the device will announce in broadcast
# Broadcast address to which the device will announce itself. (May need to be changed due to some firewall configurations)
DISCOVERY_BROADCAST_ADDR: &discovery-broadcast-address 255.255.255.255
# Some containers use this var name but the meaning is the same as DISCOVERY_BROADCAST_ADDR
SERVER_DISCOVERY_ADDR: *discovery-broadcast-address
name: server-development
services:
roomba:
image: ventus218/domoticasw-roomba
<<: *devices-common
environment:
<<: *devices-common-environment
PORT: 8085 # Port on which the device will bind his web server
music-player:
image: corradostortini2/domoticasw-music-player
<<: *devices-common
environment:
<<: *devices-common-environment
MUSICS: "Back in Black-255,Must Have Been the Wind-243,Eye of the Tiger-246,Don't Stop Me Now-209,INVISIBLE-191"
PORT: 8086
light-sensor:
image: corradostortini2/domoticasw-light-sensor
<<: *devices-common
environment:
<<: *devices-common-environment
PORT: 8087
presence-sensor:
image: ventus218/domoticasw-boolean-sensor
<<: *devices-common
environment:
<<: *devices-common-environment
ID: presence-sensor
TARGET_CONDITION: Presence
CONDITION_PROBABILITY: 33
CONDITION_TEST_PERIOD_MS: 5000
PORT: 8088
rain-sensor:
image: ventus218/domoticasw-boolean-sensor
<<: *devices-common
environment:
<<: *devices-common-environment
ID: rain-sensor
TARGET_CONDITION: Rain
CONDITION_PROBABILITY: 25
CONDITION_TEST_PERIOD_MS: 5000
PORT: 8089
washing-machine:
image: marcoraggio/domoticasw-washing-machine:latest
<<: *devices-common
environment:
<<: *devices-common-environment
PORT: 8091
smart-window:
image: marcoraggio/domoticasw-window:latest
<<: *devices-common
environment:
<<: *devices-common-environment
PORT: 8092
lamp:
image: fracarluccii/domoticasw-lamp:latest
<<: *devices-common
environment:
<<: *devices-common-environment
DEVICE_PORT: 8093
thermometer:
image: fracarluccii/domoticasw-thermometer:latest
<<: *devices-common
environment:
<<: *devices-common-environment
DEVICE_PORT: 8090
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_URL: mongodb://mongo:27017/
ME_CONFIG_BASICAUTH: false