Commit 7986943 DHBaek
committed
1 parent 10c1a48 commit 7986943 Copy full SHA for 7986943
File tree 3 files changed +6
-25
lines changed
3 files changed +6
-25
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ docker build -t tti-worker .
46
46
``` shell
47
47
docker run -d --name < worker_container_name> \
48
48
--gpus=' "device=0"' -e BROKER_URI=< broker_uri> \
49
- -e DATABASE_URL =< firebase_realtime_database_url> \
50
- -e STORAGE_BUCKET =< firebase_storage_url> \
49
+ -e FIREBASE_DATABASE_URL =< firebase_realtime_database_url> \
50
+ -e FIREBASE_STORAGE_BUCKET =< firebase_storage_url> \
51
51
-v < firebase_credential_path> :/app/key -v < model_local_path> :/app/model \
52
52
tti-worker
53
53
```
Original file line number Diff line number Diff line change 1
1
version : ' 3'
2
2
3
3
services :
4
- stable-diffusion-v2 :
5
- image : devainetwork/tti-worker
6
- container_name : stable-diffuion-v2-worker
7
- env_file :
8
- - .env
9
- environment :
10
- - VHOST_NAME=stable-diffusion-v2
11
- volumes :
12
- - <firebase_credential_path>:/app/key
13
- - <model_local_path>:/app/model
14
- networks :
15
- - tti-fastapi_dev
16
- restart : unless-stopped
17
- deploy :
18
- resources :
19
- reservations :
20
- devices :
21
- - driver : nvidia
22
- device_ids : [<gpu_id>]
23
- capabilities : [gpu]
24
-
25
4
stable-diffusion-v2-1 :
26
- image : devainetwork/tti-worker
5
+ build :
6
+ context : .
7
+ dockerfile : Dockerfile
27
8
container_name : stable-diffuion-v2-1-worker
28
9
env_file :
29
10
- .env
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class FirebaseSettings(BaseSettings):
17
17
cred_path : str = "/app/key/serviceAccountKey.json"
18
18
firebase_database_url : str
19
19
firebase_storage_bucket : str
20
- app_name : str = "text-to-art"
20
+ firebase_app_name : str = "text-to-art"
21
21
22
22
23
23
celery_worker_settings = CeleryWorkerSettings ()
You can’t perform that action at this time.
0 commit comments