-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.34 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
version: '3.5'
services:
exchange-rails:
build:
context: .
dockerfile: ./Dockerfile
image: exchange-example
volumes:
- .:/exchange
container_name: exchange-rails
command: rails server -b 0.0.0.0
environment:
- RAILS_ENV=${RAILS_ENV:-development}
- JWT_ISS=${JWT_ISS:-http://localhost:3001}
- MONGO_URL=brokers-mongo:27017
- HOSTNAME=exchange-rails
- SERVICE_NAME=exchange
- HUTCH_MQ_HOST=brokers-rabbitmq
- HUTCH_MQ_API_HOST=brokers-rabbitmq
- HUTCH_MQ_EXCHANGE=bolsadevalores
ports:
- 3001:3000
exchange-hutch:
build:
context: .
dockerfile: ./Dockerfile
image: exchange-example
volumes:
- .:/exchange
container_name: exchange-hutch
command: hutch
environment:
- MONGO_URL=brokers-mongo:27017
- HOSTNAME=exchange-hutch
- RAILS_ENV=${RAILS_ENV:-development}
- HUTCH_MQ_HOST=brokers-rabbitmq
- HUTCH_MQ_API_HOST=brokers-rabbitmq
- HUTCH_MQ_EXCHANGE=bolsadevalores
exchange-docs:
build:
context: .
dockerfile: ./Dockerfile
image: exchange-example
volumes:
- .:/exchange
ports:
- 8809:8808
container_name: exchange-docs
command: yard server -r
depends_on:
- exchange-rails
networks:
default:
external:
name: brokers-bridge