-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (59 loc) · 1.48 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# docker-compose file to manage the LabCAS/Celery/Redis application stack
version: '3.3'
networks:
default:
external:
name: labcas-network
services:
redis:
image: redis
container_name: redis
# expose port to client running on localhost
#ports:
# - 6379:6379
# start redis with data persistence
command: ["redis-server", "--appendonly", "yes"]
restart: always
volumes:
# persist redis data
- redis-data:/data
celery-worker:
image: edrn/labcas-celery
# container_name: celery-worker
user: noroot
build:
context: .
command: ["celery", "-A", "labcas.celery.worker", "worker", "-l=info", "-c", "10"]
env_file:
- labcas-celery.env
restart: always
depends_on:
- redis
flower:
image: edrn/labcas-celery
container_name: flower
user: noroot
#ports:
# - 5555:5555
restart: always
command: ["celery", "-A", "labcas.celery.worker", "flower", "-l", "info", "--url_prefix=flower"]
env_file:
- labcas-celery.env
depends_on:
- redis
- celery-worker
nginx:
image: edrn/labcas-nginx
container_name: nginx
build:
context: ./nginx
# makes flower available at: http://<hostname>:<port>/flower/
ports:
- "8080:80"
#volumes:
# override default nginx configuration
# - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- flower
volumes:
redis-data: