forked from derogab/home-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (52 loc) · 988 Bytes
/
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
version: '3'
volumes:
hm.cache:
networks:
hm.net:
services:
hm.cache:
restart: always
container_name: home-monitor-cache
image: redis:7.0-alpine
command: redis-server --save 20 1 --loglevel warning
volumes:
- hm.cache:/data
networks:
- hm.net
hm.api:
restart: always
container_name: home-monitor-api
build:
context: ./api
dockerfile: Dockerfile
ports:
- 3001:3001
depends_on:
- hm.cache
links:
- hm.cache
env_file:
- ./api/.env
environment:
REDIS_HOST: hm.cache
REDIS_PORT: 6379
networks:
- hm.net
hm.gui:
restart: always
container_name: home-monitor-gui
build:
context: ./gui
dockerfile: Dockerfile
ports:
- 3000:80
depends_on:
- hm.api
- hm.daemon
hm.daemon:
restart: always
container_name: home-monitor-daemon
build:
context: ./daemon
env_file:
- ./daemon/.env