forked from finmars-platform/finmars-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (57 loc) · 1.32 KB
/
Copy pathdocker-compose.yml
File metadata and controls
63 lines (57 loc) · 1.32 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
services:
web: &base
build: .
env_file:
- .env
volumes:
- ./poms:/var/app/poms
depends_on:
- db
- rabbitmq
- redis
restart: always
ports:
- "8000:8080"
worker:
<<: *base
ports: []
environment:
- DJANGO_SETTINGS_MODULE=poms_app.settings # remove after change manage.py location
command: >
sh -c "celery --app poms_app worker --concurrency=1 --loglevel=INFO -n $CORE_WORKER_NAME -Q $CORE_QUEUES --max-tasks-per-child=1"
migration:
<<: *base
environment:
- DJANGO_SETTINGS_MODULE=poms_app.settings # remove after change manage.py location
depends_on:
- db
- redis
command: ["python", "manage.py", "migrate_all_schemes"]
db:
image: postgres:13-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: finmars_dev
POSTGRESQL_MAX_OPEN_CONNS: 500
stdin_open: true
tty: true
ports:
- "5432:5432"
volumes:
- ./postgres_data:/var/lib/postgresql/data
rabbitmq:
image: rabbitmq:4.1-management-alpine
ports:
- "5672:5672"
- "15672:15672" # HTTP management port
stdin_open: true
tty: true
redis:
image: redis
ports:
- "6379:6379"
stdin_open: true
tty: true
volumes:
postgres_data: