chore(tools): use DOCKER_HOST_LOCATION env var to set container host
This commit is contained in:
committed by
mrugesh mohapatra
parent
b3c612f70f
commit
01edc58a2a
@ -1,11 +1,11 @@
|
|||||||
# Docker Compose file for FreeCodeCamp
|
# 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
|
# If you have previously run freeCodeCamp outside of docker, run
|
||||||
# npm run clean
|
# npm run clean
|
||||||
# and select 'yes' to remove all node_module folders
|
# and select 'yes' to remove all node_module folders
|
||||||
#
|
|
||||||
# before trying to bootstrap the project
|
# before trying to bootstrap the project
|
||||||
#
|
#
|
||||||
# Bootstrap with:
|
# Bootstrap with:
|
||||||
@ -37,9 +37,9 @@ services:
|
|||||||
user: node
|
user: node
|
||||||
environment:
|
environment:
|
||||||
- API_PROXY=http://api-server:3000
|
- API_PROXY=http://api-server:3000
|
||||||
- GATSBY_WEBPACK_PUBLICPATH=http://localhost:8000/
|
- GATSBY_WEBPACK_PUBLICPATH=http://$DOCKER_HOST_LOCATION:8000/
|
||||||
- HOME_LOCATION=http://localhost:8000
|
- HOME_LOCATION=http://$DOCKER_HOST_LOCATION:8000
|
||||||
- API_LOCATION=http://localhost:3000
|
- API_LOCATION=http://$DOCKER_HOST_LOCATION:3000
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
working_dir: /app/client
|
working_dir: /app/client
|
||||||
@ -56,9 +56,9 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- MAILHOG_HOST=mailhog
|
- MAILHOG_HOST=mailhog
|
||||||
- MONGOHQ_URL=mongodb://db:27017/freecodecamp
|
- MONGOHQ_URL=mongodb://db:27017/freecodecamp
|
||||||
- COOKIE_DOMAIN=localhost
|
- COOKIE_DOMAIN=$DOCKER_HOST_LOCATION
|
||||||
- HOME_LOCATION=http://localhost:8000
|
- HOME_LOCATION=http://$DOCKER_HOST_LOCATION:8000
|
||||||
- API_LOCATION=http://localhost:3000
|
- API_LOCATION=http://$DOCKER_HOST_LOCATION:3000
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
working_dir: /app/api-server
|
working_dir: /app/api-server
|
||||||
|
@ -30,3 +30,4 @@ NEWS_LOCATION='https://news.localhost/latest'
|
|||||||
LOCALE=english
|
LOCALE=english
|
||||||
|
|
||||||
TEST_CHALLENGES_FOR_LANGS=english
|
TEST_CHALLENGES_FOR_LANGS=english
|
||||||
|
DOCKER_HOST_LOCATION=localhost
|
||||||
|
Reference in New Issue
Block a user