-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (50 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
69 lines (50 loc) · 1.25 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
services:
home_assistant:
image: ghcr.io/home-assistant/home-assistant:stable
container_name: home_assistant
hostname: home_assistant
restart: unless-stopped
ports:
- 8123:8123
volumes:
- ./docker/home_assistant/config:/config
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Asia/Dhaka
mosquitto:
image: eclipse-mosquitto:latest
container_name: mosquitto
hostname: mosquitto
restart: unless-stopped
ports:
- 1883:1883
- 9001:9001
volumes:
- ./docker/mosquitto/config:/mosquitto/config
- /etc/localtime:/etc/localtime:ro
environment:
- TZ=Asia/Dhaka
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "1883"]
interval: 10s
timeout: 5s
retries: 5
start_period: 1s
powerstation_simulator:
image: ps_sim:dev
build:
context: .
dockerfile: ps_sim.dockerfile
container_name: powerstation_simulator
hostname: powerstation_simulator
restart: unless-stopped
depends_on:
mosquitto:
condition: service_healthy
env_file:
- .env.sample
environment:
- TZ=Asia/Dhaka
- STATION_PREFIX=PS_001
volumes:
- ./src/powerstation_simulator:/app/src