-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocal.yml
112 lines (103 loc) · 2.6 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
version: "3.9"
services:
django-backend-service:
build:
context: .
dockerfile: ./docker/local/django/Dockerfile
command: /start
container_name: django-backend
volumes:
- .:/app
- static_volume:/app/staticfiles
- media_volume:/app/mediafiles
ports:
- "8000:8000"
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
depends_on:
- postgres
- mailhog
- redis
networks:
- devsearch-live
postgres:
build:
context: .
dockerfile: ./docker/local/postgres/Dockerfile
container_name: postgres
volumes:
- local_postgres_data:/var/lib/postgresql/data
env_file:
- ./.envs/.local/.postgres
networks:
- devsearch-live
mailhog:
image: mailhog/mailhog:v1.0.0
container_name: mailhog
ports:
- "8025:8025"
networks:
- devsearch-live
redis:
image: redis:7-alpine
container_name: redis
networks:
- devsearch-live
celery_worker:
build:
context: .
dockerfile: ./docker/local/django/Dockerfile
command: /start-celeryworker
container_name: celery_worker
volumes:
- .:/app
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
depends_on:
- redis
- postgres
- mailhog
networks:
- devsearch-live
flower:
build:
context: .
dockerfile: ./docker/local/django/Dockerfile
command: /start-flower
container_name: flower
volumes:
- flower_data:/data
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "5555:5555"
depends_on:
- redis
- postgres
networks:
- devsearch-live
nginx:
restart: always
depends_on:
- django-backend-service
volumes:
- static_volume:/app/staticfiles
- media_volume:/app/mediafiles
build:
context: ./docker/local/nginx
dockerfile: Dockerfile
ports:
- "8080:80"
networks:
- devsearch-live
networks:
devsearch-live:
driver: bridge
volumes:
local_postgres_data: {}
static_volume:
media_volume:
flower_data: {}