瀏覽代碼

docker-compose

Leo 2 年之前
父節點
當前提交
4b10b94210
共有 1 個文件被更改,包括 20 次插入0 次删除
  1. 20 0
      docker-compose.yml

+ 20 - 0
docker-compose.yml

@@ -0,0 +1,20 @@
+version: '2'
+services:
+  jupyter:
+    # hostname: jupyter
+    container_name: jupyter
+    restart: always
+    image: ylproj-jupyter:latest
+    privileged: true
+    ipc: host
+    tty: true
+    # network_mode: "host"
+    # working_dir: /workspace
+    ports:
+      - '25522:8888'
+      # - '8998:8998'
+      # - '22522:22'
+      # - "10000-10010:10000-10010"
+    volumes:
+      - ./config.json:/home/sxkj/.sparkmagic/config.json
+      - ./:/workspace