-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (25 loc) · 836 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
.PHONY: secrets build deploy inspect clean clean-secrets
# terminate input with EOF / CTRL-Z
secrets:
docker secret create SECRET_KEY -
docker secret create DATABASE_PASSWORD -
docker secret create EMAIL_HOST_PASSWORD -
build:
docker build ./backend
# supposed to fail after build
deploy-build:
docker-compose up --build
deploy:
docker stack deploy --compose-file=docker-compose.yml cryptotax-backend-dev
inspect:
docker stack ps --no-trunc cryptotax-backend-dev
docker inspect wjwl7p4hd7gzgq69crewebikp
clean:
docker service rm cryptotax-backend-dev_celery
docker service rm cryptotax-backend-dev_celery-beat
docker service rm cryptotax-backend-dev_redis
docker service rm cryptotax-backend-dev_api
clean-secrets:
docker secret rm SECRET_KEY
docker secret rm DATABASE_PASSWORD
docker secret rm EMAIL_HOST_PASSWORD