-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: introduce the worker as a separate node
This makes the Docker environment feature-complete since no worker and therefore no tasks were ran at all before this. It also paves the way for that same separation to happen in production because currently both the worker and the web server happen to run on the same machine, which isn't the best idea for scalabilty or resilience. Introduce: - a Redis node; - a new "worker" service that runs off the tagged server image ("ma-cantine-server"); - a Makefile to help administrate the Docker setup.
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
DOCKER-RUN = docker compose run -e TERM --rm --entrypoint="" | ||
|
||
build: | ||
docker compose build | ||
|
||
up: | ||
docker compose up | ||
|
||
down: | ||
docker compose down | ||
|
||
sh: | ||
$(DOCKER-RUN) server bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters