-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.development.yml
51 lines (47 loc) · 1.13 KB
/
docker-compose.development.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
version: '3'
services:
redis:
hostname: redis
container_name: redis_db
image: redis
ports:
- "6379:6379"
volumes:
- ./data:/data
expose:
- "6379"
networks:
- offertiamo_development
worker:
container_name: worker_celery
build: .
volumes:
- .:/code
environment:
CELERY_BROKER_URL: "redis://redis:6379/1"
CELERY_RESULT_BACKEND: "redis://redis:6379/1"
BROKER_URL: "redis://redis:6379/1"
RESULT_BACKEND: "redis://redis:6379/1"
REDIS_DATABASE_HOST: redis
command: [ "celery", "-A", "services.celery_services.celery_app", "worker" ]
depends_on:
- redis
networks:
- offertiamo_development
monitor:
container_name: monitor_celery
build: .
ports:
- "5555:5555"
environment:
CELERY_BROKER_URL: "redis://redis:6379/1"
CELERY_RESULT_BACKEND: "redis://redis:6379/1"
REDIS_DATABASE_HOST: "redis"
command: [ 'celery', 'flower','--broker=redis://redis:6379/1' ]
depends_on:
- redis
- worker
networks:
- offertiamo_development
networks:
offertiamo_development: