forked from DmitryPukhov/pytrade
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (57 loc) · 1.26 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
version: "3.9"
services:
# Main app - pytrade
pytrade:
container_name: pytrade
build:
context: .
dockerfile: Dockerfile
depends_on:
rabbit:
condition: service_healthy
#restart: on-failure
links:
- rabbit
networks:
- pytrade
# Rabbit for exchange between systems
rabbit:
container_name: pytrade-rabbit
build:
context: ./rabbit
dockerfile: Dockerfile
ports:
# The standard AMQP protocol port
- '5672:5672'
# HTTP management UI
- '15672:15672'
# Stomp
- '15674:15674'
- '61613:61613'
healthcheck:
test: [ "CMD", "nc", "-z", "rabbit", "5672" ]
#test: rabbitmq-diagnostic -q ping
interval: 5s
timeout: 15s
retries: 3
networks:
- pytrade
# React web ui for basic management
www:
container_name: pytrade-www
depends_on:
pytrade:
condition: service_started
build:
context: www
dockerfile: Dockerfile
ports:
- '3000:3000' # localhost:3000 in browser
command: >
bash -c "npm install && npm start --host 0.0.0.0 --port 3000 --live-reload -o"
networks:
- pytrade
# Network for exchange between systems
networks:
pytrade:
external: false