-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
53 lines (50 loc) · 1.18 KB
/
docker-compose.local.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
services:
web:
build:
context: .
dockerfile: docker/Dockerfile.server
volumes:
- ./exports:/app/exports
- ./content:/app/content
user: thekid
ports:
- "5000:5000"
environment:
- FLASK_APP=bereal.server
depends_on:
- redis
celery:
build:
context: .
dockerfile: docker/Dockerfile.celery
volumes:
- ./exports:/app/exports
- ./content:/app/content
user: thekid
command: celery -A bereal.celery worker --loglevel=INFO --logfile=celery.log -E
environment:
- FLASK_APP=bereal.server
depends_on:
- web
- redis
flower:
build:
context: .
dockerfile: docker/Dockerfile.flower
volumes:
- ./exports:/app/exports
user: thekid
ports:
- "5555:5555"
command: celery -A bereal.celery flower --address=0.0.0.0 --inspect --enable-events --loglevel=DEBUG --logfile=flower.log
environment:
- FLASK_APP=bereal.server
depends_on:
- web
- redis
- celery
redis:
image: "redis:alpine"
volumes:
- ./redis/redis.conf:/usr/local/etc/redis/redis.conf
command: redis-server /usr/local/etc/redis/redis.conf