File tree Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change
1
+ version : ' 3.8'
2
+
1
3
services :
2
4
django :
3
5
build :
@@ -8,16 +10,10 @@ services:
8
10
DEBUG : " True"
9
11
DOMAIN_NAME : localhost
10
12
MEDIA_PATH : ./media
11
- CELERY_BROKER_URL : " redis://redis:6379/0"
12
- CELERY_RESULT_BACKEND : " redis://redis:6379/0"
13
- REDIS_HOST : " redis"
14
13
DJANGO_SETTINGS_MODULE : " backend.settings"
15
14
volumes :
16
15
- ./backend:/usr/src/app
17
- - static_volume:/usr/src/app/staticfiles
18
16
command : daphne -b 0.0.0.0 -p 8000 backend.asgi:application
19
- depends_on :
20
- - redis
21
17
networks :
22
18
- app_network
23
19
@@ -30,14 +26,9 @@ services:
30
26
- ./backend:/usr/src/app
31
27
environment :
32
28
DEBUG : " True"
33
- CELERY_BROKER_URL : " redis://redis:6379/0"
34
- CELERY_RESULT_BACKEND : " redis://redis:6379/0"
35
29
DJANGO_SETTINGS_MODULE : " backend.settings"
36
30
command : celery -A backend worker -l info
37
31
user : celery
38
- depends_on :
39
- - redis
40
- - django
41
32
networks :
42
33
- app_network
43
34
@@ -50,14 +41,9 @@ services:
50
41
- ./backend:/usr/src/app
51
42
environment :
52
43
DEBUG : " True"
53
- CELERY_BROKER_URL : " redis://redis:6379/0"
54
- CELERY_RESULT_BACKEND : " redis://redis:6379/0"
55
44
DJANGO_SETTINGS_MODULE : " backend.settings"
56
45
command : celery -A backend beat -l info
57
46
user : celery
58
- depends_on :
59
- - redis
60
- - django
61
47
networks :
62
48
- app_network
63
49
@@ -77,7 +63,6 @@ services:
77
63
ports :
78
64
- " 80:80"
79
65
volumes :
80
- - static_volume:/var/www/staticfiles
81
66
- ./frontend/dist:/var/www/html
82
67
- ./media:/var/www/media
83
68
depends_on :
Original file line number Diff line number Diff line change
1
+ version : ' 3.8'
2
+
1
3
services :
2
4
django :
3
5
image : ghcr.io/${OWNER_LC}/tibiknini:latest
4
6
environment :
5
7
DEBUG : " False"
6
8
DOMAIN_NAME : boger.dev
7
9
MEDIA_PATH : /var/www/media
8
- REDIS_HOST : " redis"
10
+ restart : always
11
+
12
+ celery_worker :
13
+ image : ghcr.io/${OWNER_LC}/tibiknini:latest
14
+ command : celery -A backend worker -l info
15
+ restart : always
16
+
17
+ celery_beat :
18
+ image : ghcr.io/${OWNER_LC}/tibiknini:latest
19
+ command : celery -A backend beat -l info
9
20
restart : always
10
21
11
22
nginx :
12
23
image : ghcr.io/${OWNER_LC}/nginx:latest
24
+ ports :
25
+ - " 80:80"
26
+ - " 443:443"
13
27
volumes :
14
28
- /var/www/media:/var/www/media
15
29
restart : always
Original file line number Diff line number Diff line change
1
+ version : ' 3.8'
2
+
1
3
services :
2
4
nginx :
3
5
build :
You can’t perform that action at this time.
0 commit comments