-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (63 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
67 lines (63 loc) · 1.37 KB
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
x-services-volume:
&services-volume
type: bind
source: ./app
target: /app
services:
app:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
shm_size: "16g"
shm_size: "16g"
ports:
- 8003:8003
restart: always
volumes:
- *services-volume
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- LC_ALL=C.UTF-8
- LANG=C.UTF-8
command: >
sh -c "uvicorn core.fast_api_endpoints:app --host 0.0.0.0 --port 8003 --reload"
depends_on:
- redis
broker:
platform: linux/amd64
hostname: broker
container_name: broker
image: rabbitmq:3
ports:
- 5672:5672
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
celery_worker:
platform: linux/amd64
hostname: celery_worker
container_name: celery_worker
build:
context: .
dockerfile: Dockerfile
shm_size: "8g"
shm_size: "8g"
command: celery -A core.celery_worker.celery worker --loglevel=info
volumes:
- *services-volume
environment:
- CELERY_BROKER_URL=${CELERY_BROKER_URL}
- LC_ALL=C.UTF-8
- LANG=C.UTF-8
depends_on:
- app
- broker
- redis
redis:
platform: linux/amd64
hostname: redis
container_name: redis
image: redislabs/rejson:2.4.3
ports:
- 6379:6379