-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.extend.yaml
More file actions
161 lines (123 loc) · 2.53 KB
/
Copy pathcompose.extend.yaml
File metadata and controls
161 lines (123 loc) · 2.53 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# This is used for USE_xxx options until `extend:` or `include:` is fixed...
# Wait for cloudflared
x-cloudflared: &cf-true
cloudflared:
condition: service_started
restart: false
# https://instinct.docs.amd.com/projects/container-toolkit/en/latest/index.html
x-gpu-amd: &gpu-amd
devices:
- "/dev/dri:/dev/dri"
environment:
AMD_VISIBLE_DEVICES: "all"
# https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html
x-gpu-nvidia: &gpu-nvidia
environment:
NVIDIA_DRIVER_CAPABILITIES: "all"
NVIDIA_VISIBLE_DEVICES: "all"
runtime: nvidia
x-gpu-intel: &gpu-intel
devices:
- "/dev/dri:/dev/dri"
privileged: true
x-service-started: &service-started
condition: service_started
restart: false
# Wait for postgres
x-postgres: &pg-true
postgres: *service-started
# Wait for the VPN
x-vpn: &vpn-true
proxy: *service-started
# Wait for both
x-postgres-vpn: &pg-true_vpn-true
postgres: *service-started
proxy: *service-started
services:
cf-false:
cf-false_gpu-amd:
<<: *gpu-amd
cf-false_gpu-intel:
<<: *gpu-intel
cf-false_gpu-none:
cf-false_gpu-nvidia:
<<: *gpu-nvidia
cf-true:
depends_on:
<<: *cf-true
cf-true_gpu-amd:
<<: *gpu-amd
depends_on:
<<: *cf-true
cf-true_gpu-intel:
<<: *gpu-intel
depends_on:
<<: *cf-true
cf-true_gpu-none:
depends_on:
<<: *cf-true
cf-true_gpu-nvidia:
<<: *gpu-nvidia
depends_on:
<<: *cf-true
gpu-amd:
<<: *gpu-amd
gpu-intel:
<<: *gpu-intel
gpu-none:
gpu-nvidia:
<<: *gpu-nvidia
gpu-amd_vpn-true:
<<: *gpu-amd
depends_on:
<<: *vpn-true
gpu-intel_vpn-true:
<<: *gpu-intel
depends_on:
<<: *vpn-true
gpu-none_vpn-true:
depends_on:
<<: *vpn-true
gpu-nvidia_vpn-true:
<<: *gpu-nvidia
depends_on:
<<: *vpn-true
gpu-amd_vpn-false:
<<: *gpu-amd
networks:
- external
gpu-intel_vpn-false:
<<: *gpu-intel
networks:
- external
gpu-none_vpn-false:
networks:
- external
gpu-nvidia_vpn-false:
<<: *gpu-nvidia
networks:
- external
pg-true:
depends_on:
<<: *pg-true
pg-true_vpn-false:
networks:
- external
depends_on:
<<: *pg-true
pg-true_vpn-true:
depends_on:
<<: *pg-true_vpn-true
pg-false:
pg-false_vpn-false:
networks:
- external
pg-false_vpn-true:
depends_on:
<<: *vpn-true
vpn-false:
networks:
- external
vpn-true:
depends_on:
<<: *vpn-true