forked from metavoiceio/metavoice-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (57 loc) · 1.2 KB
/
docker-compose.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
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
version: "3.5"
networks:
metavoice-net:
driver: bridge
volumes:
hf-cache:
driver: local
x-common-settings: &common-settings
volumes:
- hf-cache:/.hf-cache
- ./assets:/app/assets
deploy:
replicas: 1
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [ gpu ]
runtime: nvidia
ipc: host
tty: true # enable colorized logs
build:
context: .
image: metavoice-server:latest
networks:
- metavoice-net
environment:
- NVIDIA_VISIBLE_DEVICES=all
- HF_HOME=/.hf-cache
logging:
options:
max-size: "100m"
max-file: "10"
services:
server:
<<: *common-settings
container_name: metavoice-server
command: [ "--port=58004" ]
ports:
- 58004:58004
healthcheck:
test: [ "CMD", "curl", "http://metavoice-server:58004/health" ]
interval: 1m
timeout: 10s
retries: 20
ui:
<<: *common-settings
container_name: metavoice-ui
entrypoint: [ "poetry", "run", "python", "app.py" ]
ports:
- 7861:7861
healthcheck:
test: [ "CMD", "curl", "http://localhost:7861" ]
interval: 1m
timeout: 10s
retries: 1