-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
32 lines (30 loc) · 675 Bytes
/
Copy pathcompose.yaml
File metadata and controls
32 lines (30 loc) · 675 Bytes
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
name: melody-engine
services:
backend:
build:
context: .
dockerfile: Dockerfile
args:
REVISION: "${REVISION}"
image: localhost/melody-engine:${REVISION}
container_name: melody-engine
restart: unless-stopped
environment:
- TF_GPU_ALLOCATOR=cuda_malloc_async
volumes:
- ./outputs:/opt/app/outputs:rw,Z
- ~/.cache/melody-engine:/magenta-realtime/cache:rw,Z
ports:
- "8080:8080"
networks:
- net
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
networks:
net:
driver: bridge