-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (57 loc) · 1015 Bytes
/
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
53
54
55
56
57
version: "3"
services:
web:
build:
context: ./
dockerfile: api/Dockerfile
restart: always
ports:
- "5001:5001"
networks:
main:
aliases:
- web
worker:
build:
context: ./
dockerfile: celery-scheduler/Dockerfile
command: celery -A tasks worker -l info
volumes:
- ./data/:/home/docker/data/
networks:
main:
aliases:
- worker
depends_on:
- redis_celery
- redis_leaks
celery-beat:
build:
context: ./
dockerfile: celery-scheduler/Dockerfile
command: celery -A tasks beat -l info
depends_on:
- redis_celery
- worker
networks:
main:
aliases:
- beat
redis_celery:
image: redis
expose:
- "6379"
networks:
main:
aliases:
- redis_celery
redis_leaks:
image: redis
expose:
- "6379"
networks:
main:
aliases:
- redis_leaks
networks:
main: