forked from ROCm/ROCm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml.template
77 lines (72 loc) · 1.64 KB
/
docker-compose.yml.template
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '2'
services:
# The following containers are data-only, exporting volumes
# They are not meant to be used as interactive containers
roct:
build:
context: ./roct
dockerfile: Dockerfile
image: ${roct_name}
container_name: roct
entrypoint: /bin/true
volumes:
- ${roct_volume}
rocr:
depends_on:
- roct
build:
context: ./rocr
dockerfile: Dockerfile
image: ${rocr_name}
container_name: rocr
entrypoint: /bin/true
volumes:
- ${rocr_volume}
hcc-lc:
depends_on:
- rocr
build:
context: ./hcc-lc
dockerfile: Dockerfile
image: ${hcc_lc_name}
container_name: hcc-lc
entrypoint: /bin/true
volumes:
- ${hcc_lc_volume}
hcc-hsail:
depends_on:
- rocr
build:
context: ./hcc-hsail
dockerfile: Dockerfile
image: ${hcc_hsail_name}
container_name: hcc-hsail
entrypoint: /bin/true
volumes:
- ${hcc_hsail_volume}
# The following defines application containers, which depend on the data-only
# containers defiend above to provide their software layers
# These should be run with `docker-compose run --rm <application-service>`
rocm:
build:
context: ./rocm-terminal
dockerfile: Dockerfile
devices:
- "/dev/kfd"
image: rocm/terminal
volumes:
- ~:/usr/local/src/host-home
rocm-from-src:
build:
context: ./rocm-terminal
dockerfile: Dockerfile
devices:
- "/dev/kfd"
image: rocm/terminal
volumes:
- ~:/usr/local/src/host-home
volumes_from:
- roct:ro
- rocr:ro
- hcc-lc:ro
- hcc-hsail:ro