-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocal-docker-compose.yml
52 lines (47 loc) · 1.23 KB
/
local-docker-compose.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
version: '3'
services:
api:
image: ${API_IMAGE}
container_name: prosimos-api-local
restart: unless-stopped
ports:
- 5000:5000
volumes:
- ./data/celery:/app/src/celery/data
environment:
- CELERY_BROKER_URL=amqp://rabbit:5672/
- CELERY_RESULT_BACKEND=redis://redis:6379/
- FLASK_DEBUG=1
client:
image: ${CLIENT__LOCAL_IMAGE}
container_name: prosimos-client-local
restart: unless-stopped
ports:
- "80:80"
depends_on:
- api
# broker for celery
rabbit:
hostname: rabbit
image: rabbitmq:3-management
container_name: prosimos-rabbitmq
ports:
- 5672:5672 # port for the worker for tasks management
- 15672:15672 # GUI port
# result backend for celery
redis:
image: redis:6-alpine
ports:
- 6379:6379
# worker deployment
worker:
image: ${CELERY_IMAGE}
environment:
- CELERY_BROKER_URL=amqp://rabbit:5672/
- CELERY_RESULT_BACKEND=redis://redis:6379/
- FLASK_DEBUG=1
volumes:
- ./data/celery:/app/src/celery/data
depends_on:
- rabbit
- redis