Skip to content

Commit

Permalink
docker-compose support
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 committed Dec 7, 2021
1 parent 9053eca commit b1c4a53
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ FROM node:16
WORKDIR /ffs/
COPY package.json ./
RUN npm install
COPY . ./
COPY /src/build ./
46 changes: 40 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,58 @@
version: "3.8"

services:
auth_server:
build:
context: ./src
context: .
dockerfile: Dockerfile
env_file: ./.env
volumes:
- ./src:/ffs/
- ./src/build:/ffs/
- /ffs/node_modules
ports:
- "3000:3000"
command: "node server.js"

task_runner_1:
task_runner_gantry:
build:
context: .
dockerfile: Dockerfile
env_file: ./.env
volumes:
- ./src/build:/ffs/
- /ffs/node_modules
network_mode: host
command: "node taskRunner.js gantry"

task_runner_lathe:
build:
context: .
dockerfile: Dockerfile
env_file: ./.env
volumes:
- ./src/build:/ffs/
- /ffs/node_modules
network_mode: host
command: "node taskRunner.js lathe"

task_runner_mill:
build:
context: .
dockerfile: Dockerfile
env_file: ./.env
volumes:
- ./src/build:/ffs/
- /ffs/node_modules
network_mode: host
command: "node taskRunner.js mill"

task_runner_waterjet:
build:
context: ./src
context: .
dockerfile: Dockerfile
env_file: ./.env
volumes:
- ./src:/ffs/
- ./src/build:/ffs/
- /ffs/node_modules
network_mode: host
command: "node taskRunner.js lathe"
command: "node taskRunner.js waterjet"

0 comments on commit b1c4a53

Please sign in to comment.