Skip to content
Permalink
Browse files

chore(tools): use DOCKER_HOST_LOCATION env var to set container host

  • Loading branch information...
ValeraS authored and raisedadead committed Feb 23, 2019
1 parent b3c612f commit 01edc58a2aa3c7497fe7757fed3206b4be583c21
Showing with 9 additions and 8 deletions.
  1. +8 −8 docker-compose.yml
  2. +1 −0 sample.env
@@ -1,11 +1,11 @@
# Docker Compose file for FreeCodeCamp
#
# If using Docker Toolbox, replace `localhost` to output form `docker-machine ip`
# If using Docker Toolbox, set `DOCKER_HOST_LOCATION` env var to output from
# `docker-machine ip`
#
# If you have previously run freeCodeCamp outside of docker, run
# npm run clean
# and select 'yes' to remove all node_module folders
#
# before trying to bootstrap the project
#
# Bootstrap with:
@@ -37,9 +37,9 @@ services:
user: node
environment:
- API_PROXY=http://api-server:3000
- GATSBY_WEBPACK_PUBLICPATH=http://localhost:8000/
- HOME_LOCATION=http://localhost:8000
- API_LOCATION=http://localhost:3000
- GATSBY_WEBPACK_PUBLICPATH=http://$DOCKER_HOST_LOCATION:8000/
- HOME_LOCATION=http://$DOCKER_HOST_LOCATION:8000
- API_LOCATION=http://$DOCKER_HOST_LOCATION:3000
volumes:
- .:/app
working_dir: /app/client
@@ -56,9 +56,9 @@ services:
environment:
- MAILHOG_HOST=mailhog
- MONGOHQ_URL=mongodb://db:27017/freecodecamp
- COOKIE_DOMAIN=localhost
- HOME_LOCATION=http://localhost:8000
- API_LOCATION=http://localhost:3000
- COOKIE_DOMAIN=$DOCKER_HOST_LOCATION
- HOME_LOCATION=http://$DOCKER_HOST_LOCATION:8000
- API_LOCATION=http://$DOCKER_HOST_LOCATION:3000
volumes:
- .:/app
working_dir: /app/api-server
@@ -30,3 +30,4 @@ NEWS_LOCATION='https://news.localhost/latest'
LOCALE=english

TEST_CHALLENGES_FOR_LANGS=english
DOCKER_HOST_LOCATION=localhost

0 comments on commit 01edc58

Please sign in to comment.
You can’t perform that action at this time.