forked from activitypods/deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (32 loc) · 918 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
DOCKER_COMPOSE_PROD=docker compose --env-file .env --env-file .env.local
# Build and start
start:
$(DOCKER_COMPOSE_PROD) up -d
stop:
$(DOCKER_COMPOSE_PROD) kill
$(DOCKER_COMPOSE_PROD) rm -fv
# Maintainance
upgrade:
$(DOCKER_COMPOSE_PROD) pull
$(DOCKER_COMPOSE_PROD) up -d
logs:
$(DOCKER_COMPOSE_PROD) logs -f activitypods-backend
attach:
$(DOCKER_COMPOSE_PROD) exec activitypods-backend pm2 attach 0
config:
$(DOCKER_COMPOSE_PROD) config
# Welcome to my place
wtmp-logs:
$(DOCKER_COMPOSE_PROD) logs -f wtmp-backend
wtmp-attach:
$(DOCKER_COMPOSE_PROD) exec wtmp-backend pm2 attach 0
# Mutual-Aid
mutualaid-logs:
$(DOCKER_COMPOSE_PROD) logs -f mutualaid-backend
mutualaid-attach:
$(DOCKER_COMPOSE_PROD) exec mutualaid-backend pm2 attach 0
# Mastopod
mastopod-logs:
$(DOCKER_COMPOSE_PROD) logs -f mastopod-backend
mastopod-attach:
$(DOCKER_COMPOSE_PROD) exec mastopod-backend pm2 attach 0