forked from realsuayip/django-sozluk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
58 lines (57 loc) · 1.13 KB
/
docker-compose.dev.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
version: '3.7'
services:
db:
image: postgres
container_name: sozluk_dev_db
user: postgres
env_file:
- .env.db
web:
build:
context: .
dockerfile: Dockerfile.dev
command: python manage.py runserver 0.0.0.0:8000
container_name: sozluk_dev_backend
environment:
DJANGO_SETTINGS_MODULE: djdict.settings
env_file:
- .env
volumes:
- .:/code
- media_volume:/code/media
ports:
- "8000:8000"
depends_on:
- db
redis:
container_name: sozluk_dev_redis
image: redis:6.0.10-alpine
user: redis
celery:
container_name: sozluk_dev_celery_worker
env_file:
- .env
volumes:
- media_volume:/code/media
build:
context: .
dockerfile: Dockerfile.dev
command: celery -A djdict worker -l info
depends_on:
- web
- db
- redis
celery-beat:
container_name: sozluk_dev_celery_beat
env_file:
- .env
build:
context: .
dockerfile: Dockerfile.dev
command: celery -A djdict beat -l info
depends_on:
- web
- db
- redis
volumes:
media_volume: