Skip to content

Commit 23c0d28

Browse files
author
Giorgio Sironi
committed
Make it easier to stop application quickly
https://github.com/elifesciences/issues/issues/9138
1 parent 8932bad commit 23c0d28

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
.PHONY: dev test import-article import-reviewed-preprint
1+
.PHONY: dev stop test import-article import-reviewed-preprint
22

33
dev:
44
docker compose up
55

6+
stop:
7+
docker compose down
8+
69
test:
710
docker compose run --rm app ./project_tests.sh
811

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ services:
2525
- ./:/srv/api-dummy
2626
- /srv/api-dummy/build
2727
- vendor:/srv/api-dummy/vendor
28+
stop_grace_period: 1s
2829

2930
volumes:
3031
vendor:

0 commit comments

Comments
 (0)