-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
docker-compose.gpu.yml
132 lines (132 loc) · 3.54 KB
/
docker-compose.gpu.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
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
x-celery-env: &celery-env
- TF_CPP_MIN_LOG_LEVEL=2
- DJANGO_SETTINGS_MODULE=django_react.settings_docker
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- CPU_SEPARATION=0
- CELERY_FAST_QUEUE_CONCURRENCY=${CELERY_FAST_QUEUE_CONCURRENCY:-3}
- CELERY_SLOW_QUEUE_CONCURRENCY=${CELERY_SLOW_QUEUE_CONCURRENCY:-1}
- DEFAULT_FILE_STORAGE
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_STORAGE_BUCKET_NAME
- AWS_S3_CUSTOM_DOMAIN
- AWS_S3_REGION_NAME
- AWS_S3_SIGNATURE_VERSION
- AZURE_ACCOUNT_KEY
- AZURE_ACCOUNT_NAME
- AZURE_CONTAINER
- AZURE_CUSTOM_DOMAIN
- D3NET_OPENVINO=0
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all
- PYTORCH_NO_CUDA_MEMORY_CACHING
- DEMUCS_SEGMENT_SIZE
- YOUTUBE_LENGTH_LIMIT
- YOUTUBEDL_SOURCE_ADDR
- YOUTUBEDL_VERBOSE
services:
redis:
image: redis:6.0-buster
hostname: redis
expose:
- "6379"
volumes:
- redis-data:/data
restart: always
nginx:
image: jeffreyca/spleeter-web-nginx:${TAG:-latest}
volumes:
- ./nginx/templates:/etc/nginx/templates
- staticfiles:/webapp/staticfiles
environment:
- API_HOST=api
- CERTBOT_CERT_NAME=spleeter-web
- CERTBOT_EMAIL=. # Dummy email (overridden by https.yml)
- CERTBOT_DOMAIN=.
- UPLOAD_FILE_SIZE_LIMIT=${UPLOAD_FILE_SIZE_LIMIT:-100}
depends_on:
- api
restart: always
api:
image: jeffreyca/spleeter-web-backend:${TAG:-latest}-gpu
volumes:
- assets:/webapp/frontend/assets
- sqlite-data:/webapp/sqlite
- staticfiles:/webapp/staticfiles
stdin_open: true
tty: true
environment:
- TF_CPP_MIN_LOG_LEVEL=2
- DJANGO_SETTINGS_MODULE=django_react.settings_docker
- CELERY_BROKER_URL=redis://redis:6379/0
- CELERY_RESULT_BACKEND=redis://redis:6379/0
- CPU_SEPARATION=0
- ALLOW_ALL_HOSTS
- APP_HOST
- DEFAULT_FILE_STORAGE
- ENABLE_CROSS_ORIGIN_HEADERS
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_STORAGE_BUCKET_NAME
- AWS_S3_CUSTOM_DOMAIN
- AWS_S3_REGION_NAME
- AWS_S3_SIGNATURE_VERSION
- AZURE_ACCOUNT_KEY
- AZURE_ACCOUNT_NAME
- AZURE_CONTAINER
- AZURE_CUSTOM_DOMAIN
- YOUTUBE_API_KEY
- UPLOAD_FILE_SIZE_LIMIT
- YOUTUBE_LENGTH_LIMIT
- YOUTUBEDL_SOURCE_ADDR
- YOUTUBEDL_VERBOSE
depends_on:
- redis
- frontend
restart: always
celery-fast:
image: jeffreyca/spleeter-web-backend:${TAG:-latest}-gpu
entrypoint: ./celery-fast-entrypoint.sh
volumes:
- celery-data:/webapp/celery
- pretrained-models:/webapp/pretrained_models
- sqlite-data:/webapp/sqlite
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
environment: *celery-env
depends_on:
- redis
restart: always
celery-slow:
image: jeffreyca/spleeter-web-backend:${TAG:-latest}-gpu
entrypoint: ./celery-slow-entrypoint.sh
volumes:
- celery-data:/webapp/celery
- pretrained-models:/webapp/pretrained_models
- sqlite-data:/webapp/sqlite
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
environment: *celery-env
depends_on:
- redis
restart: always
frontend:
image: jeffreyca/spleeter-web-frontend:${TAG:-latest}
volumes:
- assets:/webapp/frontend/assets
stdin_open: true
tty: true
volumes:
assets:
celery-data:
pretrained-models:
redis-data:
sqlite-data:
staticfiles: