/
docker-compose.prod.yml
executable file
·64 lines (58 loc) · 1.16 KB
/
docker-compose.prod.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
version: '3'
services:
core:
restart: always
build:
context: .
dockerfile: ./Dockerfile
environment:
- CONFIG_PATH=./config/prod.json
privileged: true
volumes:
- .:/app
depends_on:
- postgres
- zigbee_mq
- zigbee2mqtt
networks:
- default
- telehooks_mq
logging:
options:
max-size: "1mb"
max-file: "3"
command: make run
postgres:
restart: always
image: postgres:14.1
volumes:
- ../crazy_bear_postgres_data:/var/lib/postgresql/data
env_file:
- config/db.env
zigbee_mq:
restart: always
image: eclipse-mosquitto:2.0.18
volumes:
- "./mosquitto-data:/mosquitto"
# ports:
# - "1883:1883"
# - "9001:9001"
command: "mosquitto -c /mosquitto-no-auth.conf"
zigbee2mqtt:
restart: always
image: koenkk/zigbee2mqtt:1.35.1
privileged: true
depends_on:
- zigbee_mq
volumes:
- ../zigbee2mqtt_data:/app/data
- /run/udev:/run/udev:ro
# ports:
# - "8080:8080"
environment:
- TZ=Europe/Moscow
volumes:
postgres_data: { }
networks:
telehooks_mq:
external: true