-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
67 lines (60 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
version: '3'
services:
rabbitmq:
image: 'rabbitmq:3.6-management-alpine'
ports:
- '5672:5672'
- '15672:15672'
networks:
- network
trade-receiver-service:
build:
context: .
dockerfile: ./trade_receiver/DockerFile
environment:
FLASK_ENV: development
AMQP_URL: 'amqp://rabbitmq?connection_attempts=5&retry_delay=5'
tty: true
restart: on-failure:5
ports:
- "5000:5000"
volumes:
- ./trade_receiver:/trade_receiver
- ./common_utils:/trade_receiver/common_utils
networks:
- network
market-data-service:
build:
context: .
dockerfile: ./market_data/Dockerfile
environment:
- IEX_TOKEN=Tpk_36614967265944c6b4b3e47be6b2b3ca
- IEX_API_VERSION=iexcloud-sandbox
- AMQP_URL='amqp://rabbitmq?connection_attempts=5&retry_delay=5'
tty: true
depends_on:
- rabbitmq
restart: on-failure:5
volumes:
- ./market_data:/market_data
- ./common_utils:/market_data/common_utils
networks:
- network
risk-publisher-service:
build:
context: .
dockerfile: ./risk_publisher/DockerFile
environment:
- AMQP_URL='amqp://rabbitmq?connection_attempts=5&retry_delay=5'
tty: true
depends_on:
- rabbitmq
- market-data-service
restart: on-failure:5
volumes:
- ./risk_publisher:/risk_publisher
- ./common_utils:/risk_publisher/common_utils
networks:
- network
networks:
network: {}