-
Notifications
You must be signed in to change notification settings - Fork 925
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed bug where the node container counldn't connect properly to the …
…redis container in docker compose
- Loading branch information
1 parent
6eda2ab
commit 3e70fd1
Showing
3 changed files
with
13 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
version: '3' | ||
|
||
networks: | ||
redis: | ||
driver: bridge | ||
|
||
services: | ||
node: | ||
build: . | ||
volumes: | ||
- ".:/src/app" | ||
ports: | ||
- "5000:5000" | ||
links: | ||
- redis_db | ||
networks: | ||
- redis | ||
redis_db: | ||
image: redis:alpine | ||
ports: | ||
- "6379" | ||
networks: | ||
- redis |
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