-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
68 lines (61 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
68 lines (61 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
version: "3.3"
services:
web:
build:
dockerfile: ./myshop/Dockerfile
ports:
- "8000:8000" # local / container
volumes:
- .:/app
- xls-volume:/app/myshop/xlsx_files
depends_on:
- db_postgres
db_postgres:
container_name: db_postgres
build: ./postgres
ports:
- "5432:5432" # host port 5433 -> linked with container port 5432
volumes:
- postgres-db-volume:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
db_redis:
container_name: db_redis
image: redis:7.2.3
ports:
- "6379:6379"
celeryworker:
container_name: celeryworker
build:
dockerfile: ./myshop/DockerfileCelery
volumes:
- xls-volume:/app/myshop/xlsx_files
- ./:/opt/celeryworker
command: celery -A celery_app.celeryapp worker --concurrency 2 -l info
depends_on:
- web
- db_redis
celeryscheduler:
container_name: celeryscheduler
build:
dockerfile: ./myshop/DockerfileCelery
volumes:
- ./:/opt/celeryworker
command: celery -A celery_app.celeryapp beat -l info
depends_on:
- web
- db_redis
flower:
container_name: flower
image: mher/flower:1.2
command: celery --broker=redis://db_redis:6379/0 flower --port=5555
ports:
- "5555:5555"
depends_on:
- db_redis
- celeryworker
- celeryscheduler
volumes:
postgres-db-volume:
xls-volume: