-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (30 loc) · 796 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (30 loc) · 796 Bytes
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
services:
rabbitmq:
container_name: rabbitmq
image: rabbitmq:3-management
ports:
- 5672:5672
- 15672:15672
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
worker:
container_name: worker
build:
dockerfile: api/Dockerfile
context: .
command: sh -c "cd api && uvicorn app:app --host 0.0.0.0 --port 8080 & cd ../ & celery -A celery_tasks.app_worker worker -l INFO --pool=solo"
volumes:
- .:/app
ports:
- "8080:8080"
webapp:
container_name: webapp
build:
dockerfile: webapp/Dockerfile
context: .
command: sh -c "cd /app && uvicorn app:app --host 0.0.0.0 --port 80 --reload"
ports:
- "80:80"