File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,15 @@ services:
3
3
command : " poetry run gunicorn go_capture.wsgi:application --bind 0.0.0.0:8000 -t 60"
4
4
environment :
5
5
- CELERY_BROKER_URL=amqp://guest:guest@broker:5672
6
+ - FIREBASE_CREDENTIALS_FILE=/run/secrets/firebase-credentials
7
+ - MEDIA_ROOT=/api/media
6
8
env_file :
7
9
- env/prod.env
8
10
image : ${image}:${tag}
9
11
ports :
10
12
- 8000:8000
13
+ secrets :
14
+ - firebase-credentials
11
15
volumes :
12
16
- media:/api/media
13
17
worker :
@@ -17,9 +21,13 @@ services:
17
21
environment :
18
22
- CELERY_BROKER_URL=amqp://guest:guest@broker:5672
19
23
- CELERY_RESULT_BACKEND=rpc
24
+ - FIREBASE_CREDENTIALS_FILE=/run/secrets/firebase-credentials
25
+ - MEDIA_ROOT=/api/media
20
26
env_file :
21
27
- env/prod.env
22
28
image : ${image}:${tag}
29
+ secrets :
30
+ - firebase-credentials
23
31
volumes :
24
32
- media:/api/media
25
33
broker :
@@ -35,3 +43,7 @@ volumes:
35
43
type : none
36
44
o : bind
37
45
device : $MEDIA_ROOT
46
+
47
+ secrets :
48
+ firebase-credentials :
49
+ file : $FIREBASE_CREDENTIALS_FILE
You can’t perform that action at this time.
0 commit comments