-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add docker volume 1. Add local docker volume through override docker-compose 2. Default no volume mount * Add comment for cached mode * 1. Use default mysql images mysql:8.0.22 2. Remove from Docker.env 3. Open changes for mysql image tag using `MYSQL_IMAGE_TAG` environment variable * Update README * add named volume Co-authored-by: Raghav2211 <[email protected]>
- Loading branch information
1 parent
94751cf
commit 91e9726
Showing
6 changed files
with
32 additions
and
14 deletions.
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
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
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
version: "3" | ||
services: | ||
psimysql: | ||
deploy: | ||
placement: | ||
constraints: | ||
- "node.role == worker" | ||
psitodoapp: | ||
image: ${PSI_TODO_STACK_IMAGE} | ||
deploy: | ||
replicas: ${PSI_TODO_REPLICA} | ||
placement: | ||
constraints: | ||
- "node.role == worker" | ||
volumes: | ||
- mysql_data:${MYSQL_DATA_DEST_PATH}:cached # Strong consistency is quite expensive, requiring coordination between all of a files writers to guarantee | ||
# they don’t inappropriately clobber each other’s changes | ||
# So Relax consistency guarantees using `cached` mode (Don’t do this in production …) | ||
volumes: | ||
mysql_data: | ||
# To use below configuration for host path ensure MYSQL_DATA_SRC_PATH should exists | ||
# driver: local | ||
# driver_opts: | ||
# type: none | ||
# device: $PWD/${MYSQL_DATA_SRC_PATH} | ||
# o: bind |
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,14 @@ | ||
version: "3" | ||
services: | ||
psimysql: | ||
deploy: | ||
placement: | ||
constraints: | ||
- "node.role == worker" | ||
psitodoapp: | ||
image: ${PSI_TODO_STACK_IMAGE} | ||
deploy: | ||
replicas: ${PSI_TODO_REPLICA} | ||
placement: | ||
constraints: | ||
- "node.role == worker" |