-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (49 loc) · 1.9 KB
/
docker-compose.yml
File metadata and controls
55 lines (49 loc) · 1.9 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: '2.3'
services:
neo4j:
image: neo4j:3.1
# ports:
# - 6006:6006
# - 7474:7474
# - 7687:7687
volumes:
- ~/neo4j/data:/data
networks:
- default
smtag:
image: embo/py-smtag:tldev
# build: .
################################################################################################
# https://stackoverflow.com/a/52063921
# https://devblogs.nvidia.com/gpu-containers-runtime/
# Needed to make use of the NVIDIA docker feautres
#
runtime: nvidia
################################################################################################
# https://docs.nvidia.com/deeplearning/frameworks/user-guide/index.html#setincshmem
# Certain applications, such as PyTorch use shared memory buffers to communicate between
# processes. By default, Docker containers are allotted 64MB of shared memory. This can be
# insufficient, particularly when using all 8 GPUs. To increase the shared memory limit to a
# specified size, for example 1GB, include the --shm-size=1g flag in your docker run command.
#
# Alternatively, you can specify the --ipc=host flag to re-use the host’s shared memory space
# inside the container. Though this latter approach has security implications as any data in
# shared memory buffers could be visible to other containers.
ipc: host
################################################################################################
# Define the working directory of the docker container. This is like defining
# from which directory do you want your commands to be executed
#
working_dir: /workspace/py-smtag
volumes:
- .:/workspace/py-smtag
#- ./resources:/workspace/resources
env_file:
- .env
#environment:
#- SMTAG_WORKING_DIRECTORY=/workspace/resources
networks:
- default
#networks:
# default:
# driver: bridge