chore(tools): add user in container and fix debug of api-server

This commit is contained in:
Valeriy 2019-02-20 00:49:46 +03:00 committed by mrugesh mohapatra
parent 11cc25b638
commit 5c95cac000
2 changed files with 8 additions and 3 deletions

View File

@ -5,7 +5,7 @@
"private": true,
"main": "development-entry.js",
"scripts": {
"babel-dev-server": "babel-node --inspect ./server/server.js",
"babel-dev-server": "babel-node --inspect=0.0.0.0 ./server/server.js",
"build": "babel server --out-dir lib --ignore 'node_modules /**/*','/**/*.test.js' --copy-files",
"commit": "git-cz",
"commitmsg": "validate-commit-msg",

View File

@ -3,8 +3,10 @@
# if using Docker Toolbox, replace `localhost` to output form `docker-machine ip`
#
# Bootstrap with:
# open bash in a container:
# docker-compose run --rm freecodecamp bash
# npm install --unsafe-perm
# and then from bash prompt:
# npm install
# npm run seed
# exit
#
@ -19,6 +21,7 @@ version: '3'
services:
freecodecamp:
image: node:lts
user: node
depends_on:
- db
- mailhog
@ -30,6 +33,7 @@ services:
working_dir: /app
client:
image: node:lts
user: node
environment:
- API_PROXY=http://api-server:3000
- GATSBY_WEBPACK_PUBLICPATH=http://localhost:8000/
@ -47,9 +51,10 @@ services:
- '0.0.0.0'
ports:
- '8000:8000'
- '9228:9228'
- '9229:9228'
api-server:
image: node:lts
user: node
depends_on:
- db
- mailhog