-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.yml
114 lines (110 loc) · 2.92 KB
/
local.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
version: '3.9'
services:
nginx:
restart: unless-stopped
image: nginx:1.25-alpine
ports:
- "8080:80"
volumes:
- ./docker/local/nginx/default.conf:/etc/nginx/conf.d/default.conf
- static_volume:/app/backend/staticfiles
- media_volume:/app/backend/mediafiles
depends_on:
- server
networks:
- djinni-clone-api
server:
restart: unless-stopped
build:
context: .
dockerfile: docker/local/backend/Dockerfile
entrypoint: /app/docker/backend/server-entrypoint.sh
volumes:
- static_volume:/app/backend/staticfiles
- media_volume:/app/backend/mediafiles
expose:
- "8000"
# ports:
# - "8000:8000"
env_file:
- ./.envs/.local/django.env
depends_on:
- redis
- rabbitmq
networks:
- djinni-clone-api
redis:
restart: unless-stopped
image: redis:7.0.5-alpine
expose:
- "6379"
networks:
- djinni-clone-api
rabbitmq:
restart: unless-stopped
image: rabbitmq:3.13-management-alpine
expose:
- "5672:5672"
ports:
- "15672:15672"
env_file:
- ./.envs/.local/rabbitmq.env
networks:
- djinni-clone-api
worker:
restart: unless-stopped
build:
context: .
dockerfile: docker/local/backend/Dockerfile
entrypoint: /app/docker/backend/worker-entrypoint.sh
volumes:
- static_volume:/app/backend/staticfiles
env_file:
- ./.envs/.local/django.env
depends_on:
- rabbitmq
networks:
- djinni-clone-api
celery-beat:
restart: unless-stopped
build:
context: .
dockerfile: docker/local/backend/Dockerfile
entrypoint: /app/docker/backend/celery-beat-entrypoint.sh
volumes:
- static_volume:/app/backend/staticfiles
env_file:
- ./.envs/.local/django.env
depends_on:
- rabbitmq
- worker
networks:
- djinni-clone-api
flower:
restart: unless-stopped
image: mher/flower
command: celery flower --persisten=True
env_file:
- ./.envs/.local/django.env
ports:
- "5555:5555"
volumes:
- flower_data:/data
depends_on:
- server
- worker
- rabbitmq
networks:
- djinni-clone-api
healthcheck:
test: [ "CMD", "curl", "-f", "http://0.0.0.0:5555" ]
interval: 30s
timeout: 10s
retries: 5
networks:
djinni-clone-api:
driver: bridge
volumes:
static_volume:
media_volume:
flower_data: {}