-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
49 lines (49 loc) · 1.02 KB
/
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
version: '3.4'
services:
api:
build:
context: .
dockerfile: ./Dockerfile
image: celery-factory-demo
container_name: some_api
command: python entrypoint_api.py --port 8080 --debug
env_file:
- ./docker.env
ports:
- "8080:8080"
volumes:
- .:/app/
worker:
build:
context: .
dockerfile: ./Dockerfile
image: celery-factory-demo
container_name: some_worker
depends_on:
- redis
- rabbitmq
command: celery worker -A entrypoint_celery.celery --loglevel=info
env_file:
- ./docker.env
volumes:
- .:/app/
redis:
image: redis:alpine
container_name: some_redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
rabbitmq:
image: rabbitmq:alpine
container_name: some_rabbitmq
ports:
- "5672:5672"
healthcheck:
test: ["CMD", "rabbitmqctl", "status"]
interval: 30s
timeout: 10s
retries: 5