-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
84 lines (77 loc) · 2.33 KB
/
docker-compose.yml
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
version: '2'
services:
########################################################
# Home Assistant
########################################################
home-assistant:
image: homeassistant/home-assistant:0.61.1
environment:
- "TZ=Europe/Berlin"
env_file:
- env
ports:
- 80:8123 # Home Assistant
- 1883:1883 # MQTT
volumes:
- ./home-assistant/config:/config
########################################################
# Coffee Machine Client
########################################################
coffee-client:
build: coffee-client
environment:
- "FLASH_COFFEE_URL=http://flash-coffee:3000"
- "FLASH_COFFEE_USERNAME=user_one"
- "FLASH_COFFEE_PASSWORD=password_one"
- "FLASH_PROVIDER_URL=http://flash-provider:3000"
- "FLASH_PROVIDER_USERNAME=user_two"
- "FLASH_PROVIDER_PASSWORD=password_two"
- "MQTT_HOST=home-assistant"
- "MQTT_PORT=1883"
- "INIT_SLEEP=5"
depends_on:
- flash-coffee
- flash-provider
- home-assistant
########################################################
# Flash Server Coffee Machine
########################################################
flash-coffee:
build: flash-server
environment:
- "IOTA_SEED=ECRUQZGHBGSIGINQV9FK9EWZZTODYCKTGLITLHUNFKIOAFQYWSUIXQDSKZYHOVLBIXWKRIXDNARDYADKU"
- "IRI_HOST=http://iota-node.duckdns.org"
- "IRI_PORT=14267"
- "IRI_TESTNET=true"
- "AUTH_USERNAME=user_one"
- "AUTH_PASSWORD=password_one"
- "MONGODB_URL=mongo-coffee"
ports:
- "3000:3000"
depends_on:
- mongo-coffee
mongo-coffee:
image: mongo
ports:
- "27017:27017"
########################################################
# Flash Server Service Provider
########################################################
flash-provider:
build: flash-server
environment:
- "IOTA_SEED=UXSVWCUKNZKOVYTWPWEF9KBHZLNSDGYDVBJGNYJKF9MZIOTSFCHRYNCKUQIYXBCILTVXL9NFMFIKQLUGX"
- "IRI_HOST=http://iota-node.duckdns.org"
- "IRI_PORT=14267"
- "IRI_TESTNET=true"
- "AUTH_USERNAME=user_two"
- "AUTH_PASSWORD=password_two"
- "MONGODB_URL=mongo-provider"
ports:
- "3001:3000"
depends_on:
- mongo-provider
mongo-provider:
image: mongo
ports:
- "27018:27017"