-
Notifications
You must be signed in to change notification settings - Fork 70
/
docker-compose.yaml
40 lines (38 loc) · 1.09 KB
/
docker-compose.yaml
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
version: '3'
services:
rabbitmq:
image: rabbitmq:3.7.27-rc.1-management-alpine
restart: always
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
redis:
image: redis:alpine3.12
restart: always
ports:
- ${EXPORT_REDIS_PORT}:6379
qlib-server:
build:
context: ../
dockerfile: ./docker_support/Dockerfile
args:
- QUEUE_HOST=rabbitmq
- REDIS_HOST=redis
- QUEUE_USER=${RABBITMQ_DEFAULT_USER}
- QUEUE_PASS=${RABBITMQ_DEFAULT_PASS}
- MESSAGE_QUEUE=${MESSAGE_QUEUE}
- TASK_QUEUE=${TASK_QUEUE}
- QLIB_DATA=${QLIB_DATA}
- FLASK_SERVER_HOST=${FLASK_SERVER_HOST}
- QLIB_CODE=${QLIB_CODE}
- REDIS_DB=${REDIS_DB}
- REDIS_PORT=6379
volumes:
- ${QLIB_DATA}:${QLIB_DATA}
depends_on:
- redis
- rabbitmq
restart: always
ports:
- ${QLIB_SERVER_PORT}:9710
command: ["./wait-for-it/wait-for-it.sh", rabbitmq:15672, "--", "python", "main.py", "-c", "config_template.yaml"]