Skip to content

Commit

Permalink
added docker-compose support
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 committed Nov 19, 2021
1 parent aba132e commit 9952585
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM node:16
WORKDIR /ffs/
COPY package.json .
RUN npm install
COPY . .
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: "3.8"
services:
auth_server:
build:
context: .
env_file: ./.env
volumes:
- .:/ffs/
- /ffs/node_modules
ports:
- "3000:3000"
expose:
- "3000"
command: "node server.js"

task_runner_1:
build:
context: .
env_file: ./.env
volumes:
- .:/ffs/
- /ffs/node_modules
network_mode: host
command: "node taskRunner.js"

1 comment on commit 9952585

@pan261
Copy link
Contributor Author

@pan261 pan261 commented on 9952585 Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be able to run the project with docker-compose up and it should consolidate all of the logs in one terminal

Please sign in to comment.