-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (21 loc) · 992 Bytes
/
Makefile
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
# @author DiZed Team
# @copyright Copyright (c) DiZed Team (https://github.com/di-zed/)
env-prepare:
cp -vn .env.sample .env
config-prepare:
cp -vn ./config/devices.sample.json ./config/devices.json
cp -vn ./config/mqtt.sample.json ./config/mqtt.json
cp -vn ./config/users.sample.json ./config/users.json
docker-prepare:
cp -vn ./volumes/etc/mosquitto/passwd.sample ./volumes/etc/mosquitto/passwd
cp -vn ./volumes/mosquitto/config/mosquitto.conf.sample ./volumes/mosquitto/config/mosquitto.conf
cp -vn ./volumes/usr/local/etc/redis/redis.conf.sample ./volumes/usr/local/etc/redis/redis.conf
docker-restart:
docker-compose stop && docker-compose up -d
docker-local-prepare:
cp -vp ./docker-compose.local.sample.yml ./docker-compose.local.yml
docker-local-stop:
docker-compose -f docker-compose.yml -f docker-compose.local.yml stop
docker-local-up:
docker-compose -f docker-compose.yml -f docker-compose.local.yml up -d
docker-local-restart: docker-local-stop docker-local-up