forked from freeCodeCamp/freeCodeCamp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allows sharing of network (freeCodeCamp#16937)
build(docker): Expose mailhog port. build(Docker): Improve wording. build(docker): Mailhog and network changes. * Add mailhog container to shared network to enable connectivity * Configure project name for docker compose in .env sample file, without it the basename of the repo directory is used, which makes it unreachable for other services * Set mailhog host to mailhog (instead of localhost) if MAILHOG_HOST env var is set * Expose 1025 to enable local troubleshooting build(docker): Update README to reflect compose changes.
- Loading branch information
1 parent
1d9eca3
commit ef37c3b
Showing
7 changed files
with
75 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,5 +56,3 @@ public/css/main* | |
webpack-bundle-stats.html | ||
server/rev-manifest.json | ||
google-credentials.json | ||
|
||
docker-compose.yml |
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,20 @@ | ||
# Docker Compose over ride file for FreeCodeCamp | ||
# | ||
# Run with: | ||
# docker-compose -f docker-compose.yml -f docker-compose-shared.yml up | ||
# | ||
version: "3" | ||
services: | ||
db: | ||
networks: | ||
- shared | ||
mailhog: | ||
networks: | ||
- shared | ||
freecodecamp: | ||
networks: | ||
- shared | ||
|
||
networks: # Used by by other projects like open-api | ||
shared: | ||
driver: bridge |
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,37 @@ | ||
# Docker Compose file for FreeCodeCamp | ||
# | ||
# Bootstrap with: | ||
# docker-compose run --rm server npm install | ||
# docker-compose run --rm server npm run only-once | ||
# | ||
# Run with: | ||
# docker-compose up | ||
# | ||
version: "3" | ||
services: | ||
freecodecamp: | ||
image: node:8.9.4 | ||
depends_on: | ||
- db | ||
- mailhog | ||
environment: | ||
- MAILHOG_HOST=mailhog | ||
- MONGOHQ_URL=mongodb://db:27017/freecodecamp | ||
volumes: | ||
- .:/app | ||
working_dir: /app | ||
command: | ||
- npm | ||
- run | ||
- develop | ||
ports: | ||
- "3000:3000" | ||
db: | ||
image: mongo:3.2.6 | ||
ports: | ||
- "27017:27017" | ||
mailhog: | ||
image: mailhog/mailhog | ||
ports: | ||
- "1025:1025" | ||
- "8025:8025" |
This file was deleted.
Oops, something went wrong.
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