-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.example.yml
30 lines (21 loc) · 1.04 KB
/
docker-compose.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Copyright (c) Siemens 2024
# This file is subject to the terms and conditions of the MIT License.
# See LICENSE file(s) in the top-level directory.
# Sample docker-compose file for using Nvidia GPUs on Industrial Edge
version: '2.4'
services:
jupyter-notebook-with-gpu:
environment:
- TF_FORCE_GPU_ALLOW_GROWTH=true # needed for MIG mode to work on MIG-capable GPUs
image: tensorflow/tensorflow:2.14.0-gpu-jupyter
command: '/bin/bash -c "jupyter notebook --notebook-dir=/tf --ip 0.0.0.0 --no-browser --allow-root --NotebookApp.allow_origin=* --NotebookApp.base_url=/jupyter-notebook-with-gpu --NotebookApp.token=\"\" --NotebookApp.password=\"\" > /tf/publish/jupyter-console.log 2>&1"'
runtime: iedge
x-resources:
limits:
nvidia.com/gpu: 1
labels:
com_mwp_conf_nginx: '[{"name":"jupyter-notebook-with-gpu","protocol":"HTTP","port":"8888","headers":"","rewriteTarget":"/jupyter-notebook-with-gpu"}]'
mem_limit: 8192mb
volumes:
- ./publish/:/tf/publish/
- ./cfg-data/:/tf/cfg-data/