-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
84 lines (77 loc) · 1.59 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
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
version: '2'
volumes:
inbox-postgres: {}
inbox-postgres-backup: {}
inbox-django-media: {}
inbox-django-static: {}
services:
clamav:
build: ./compose/clamav
ports:
- 3310:3310
restart: always
postgres:
build: ./compose/postgres
restart: always
volumes:
- inbox-postgres:/var/lib/postgresql/data
- inbox-postgres-backup:/backups
ports:
- 5432
redis:
restart: always
image: redis:latest
django:
build:
context: .
dockerfile: ./compose/django/Dockerfile-dev
user: django
command: /start-dev.sh
depends_on:
- postgres
- redis
environment:
- USE_DOCKER=yes
volumes:
- .:/app
- inbox-django-media:/app/media
- inbox-django-static:/app/static
links:
- postgres
ports:
- 8000:8000
stdin_open: True
tty: True
celeryworker:
build:
context: .
dockerfile: ./compose/django/Dockerfile-dev
user: django
environment:
- USE_DOCKER=yes
- C_FORCE_ROOT=yes # confirma a execução do celery como super-usuário
volumes:
- .:/app
- inbox-django-media:/app/media
links:
- postgres
- redis
- clamav
command:
- celery -A inbox.taskapp worker -l INFO
celerybeat:
build:
context: .
dockerfile: ./compose/django/Dockerfile-dev
user: django
environment:
- USE_DOCKER=yes
links:
- postgres
- redis
- clamav
volumes:
- .:/app
- inbox-django-media:/app/media
command:
- celery -A inbox.taskapp beat -l INFO