-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (74 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
81 lines (74 loc) · 1.46 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3.7"
services:
api: &api
build:
context: .
dockerfile: docker/dev/Dockerfile
image: profmcdan/api-api
command: python manage.py runserver 0.0.0.0:10007
volumes:
- ./app:/app
ports:
- "10007:10007"
env_file:
- ./.env
restart: unless-stopped
depends_on:
- redis
redis:
image: bitnami/redis:latest
env_file:
- ./.env
ports:
- "6379:6379"
# volumes:
# - ./redis-data:/bitnami/redis/data
celery:
<<: *api
command: celery -A core worker --loglevel=info --logfile=logs/celery.log
ports: [ ]
volumes:
- ./app:/app
env_file:
- ./.env
depends_on:
- redis
- api
celery-beat:
<<: *api
command: celery -A core beat -l info
ports: [ ]
volumes:
- ./app:/app
env_file:
- ./.env
depends_on:
- redis
- celery
dashboard:
<<: *api
command: celery --broker=${REDIS_URL} flower --port=5555
ports:
- "5555:5555"
env_file:
- ./.env
depends_on:
- api
- redis
- celery
locust-master:
image: locustio/locust
ports:
- "8089:8089"
volumes:
- ./app:/app
command: -f /app/locustfile.py --master -H http://localhost:8000
depends_on:
- api
locust-worker:
image: locustio/locust
volumes:
- ./app:/app/
command: -f /app/locustfile.py --worker --master-host locust-master
depends_on:
- api