diff --git a/compose/build.yml b/compose/build.yml index bc7e211f..e4fd1c91 100644 --- a/compose/build.yml +++ b/compose/build.yml @@ -1,6 +1,9 @@ version: "2" services: + nodejs: + build: ./nodejs + nginx: build: ./nginx diff --git a/docker-compose.yml b/docker-compose.yml index 1645a2ef..b8a04b8e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: # docker-compose -f docker-compose.yml -f compose/nginx.yml -f compose/pgsql.yml -f compose/php.yml up -d pgsql php-7.3 nodejs: - image: node:8 + image: totara/docker-dev-nodejs container_name: totara_nodejs volumes: - ${LOCAL_SRC}:${REMOTE_SRC} diff --git a/nodejs/Dockerfile b/nodejs/Dockerfile new file mode 100644 index 00000000..7f97321c --- /dev/null +++ b/nodejs/Dockerfile @@ -0,0 +1,6 @@ +FROM node:8 + +RUN npm install -g npm@5.6.0 + +CMD [ "node" ] +