Skip to content

Commit

Permalink
adds ml-workspace and traefik
Browse files Browse the repository at this point in the history
  • Loading branch information
nichlaes committed Jan 10, 2024
1 parent 36a8013 commit 3af49f5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 28 deletions.
5 changes: 2 additions & 3 deletions client/dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
FROM node:20.10.0-slim

#! docker should be run from the root directory of the project
FROM node:20.10.0-slim

# Set the working directory inside the container
WORKDIR /dtaas/client
Expand All @@ -18,4 +17,4 @@ COPY ./client/ .
RUN yarn build

# Define the command to run your app
CMD ["yarn", "start"]
CMD ["yarn", "start"]
50 changes: 25 additions & 25 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
ports:
- "4000:4000"
volumes:
- "$PWD/deploy/config/client/env.js:/dtaas/client/build/env.js"
- "$PWD/client/config/dev.js:/dtaas/client/build/env.js"
libms:
build:
context: ./
Expand All @@ -18,7 +18,6 @@ services:
volumes:
- "$PWD/deploy/config/lib.docker:/dtaas/libms/.env"
- "$PWD/files:/dtaas/libms/files"

runner:
build:
context: ./
Expand All @@ -28,27 +27,28 @@ services:
volumes:
- "$PWD/files:/dtaas/runner/files"

# ml-workspace-user1:
# image: mltooling/ml-workspace-minimal:0.13.2
# container_name: ml-workspace-user1
# ports:
# - "8090:8080"
# volumes:
# - "$PWD/files/user1:/workspace"
# - "$PWD/files/common:/workspace/common"
# environment:
# - AUTHENTICATE_VIA_JUPYTER=""
# - WORKSPACE_BASE_URL="user1"
# shm_size: 512m
# restart: always
ml-workspace-user1:
image: mltooling/ml-workspace-minimal:0.13.2
container_name: ml-workspace-user1
ports:
- "8090:8080"
volumes:
- "$PWD/files/user1:/workspace"
- "$PWD/files/common:/workspace/common"
environment:
- AUTHENTICATE_VIA_JUPYTER
- WORKSPACE_BASE_URL=user1
shm_size: 512m
restart: always

# traefik-gateway:
# image: traefik:v2.10
# container_name: traefik-gateway
# network_mode: host
# volumes:
# - "$PWD/servers/config/gateway/traefik.yml:/etc/traefik/traefik.yml"
# - "$PWD/servers/config/gateway/auth:/etc/traefik/auth"
# - "$PWD/servers/config/gateway/dynamic:/etc/traefik/dynamic"
# - "/var/run/docker.sock:/var/run/docker.sock"
# restart: always
traefik-gateway:
image: traefik:v2.10
container_name: traefik-gateway
ports:
- "9000:80"
volumes:
- "$PWD/servers/config/gateway/traefik.yml:/etc/traefik/traefik.yml"
- "$PWD/servers/config/gateway/auth:/etc/traefik/auth"
- "$PWD/servers/config/gateway/dynamic/fileConfig.docker.yml:/etc/traefik/dynamic/fileConfig.yml"
- "/var/run/docker.sock:/var/run/docker.sock"
restart: always

0 comments on commit 3af49f5

Please sign in to comment.