-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
88 lines (83 loc) · 2.61 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
version: '3.7'
services:
financing-commands:
build:
context: .
dockerfile: ./build/commandsd/Dockerfile
restart: always
ports:
- "8080:8080"
environment:
- WAIT=4000
- COMMAND_SERVER_ADDRESS=0.0.0.0:8080
- LOGGER_LEVEL=INFO
- COMMAND_DB_CONNECTION_STRING=user=postgres password=postgres host=postgres port=5432 dbname=postgres pool_max_conns=10
- AMQP_ADDRESS=amqp://guest:guest@rabbitmq:5672/
depends_on:
- postgres
- rabbitmq
financing-relayer:
build:
context: .
dockerfile: ./build/relayerd/Dockerfile
restart: always
environment:
- WAIT=4000
- LOGGER_LEVEL=DEBUG
- COMMAND_DB_CONNECTION_STRING=user=postgres password=postgres host=postgres port=5432 dbname=postgres pool_max_conns=10
- AMQP_ADDRESS=amqp://guest:guest@rabbitmq:5672/
depends_on:
- postgres
- rabbitmq
financing-queries:
build:
context: .
dockerfile: ./build/queriesd/Dockerfile
restart: always
ports:
- "8081:8081"
environment:
- WAIT=4000
- QUERY_SERVER_ADDRESS=0.0.0.0:8081
- LOGGER_LEVEL=INFO
- QUERY_DB_CONNECTION_STRING=user=postgres password=postgres host=postgres port=5432 dbname=queries
- AMQP_ADDRESS=amqp://guest:guest@rabbitmq:5672/
depends_on:
- postgres
financing-query-projector:
build:
context: .
dockerfile: ./build/queryprojectord/Dockerfile
restart: always
environment:
- WAIT=4000
- LOGGER_LEVEL=INFO
- QUERY_DB_CONNECTION_STRING=user=postgres password=postgres host=postgres port=5432 dbname=queries
- AMQP_ADDRESS=amqp://guest:guest@rabbitmq:5672/
depends_on:
- postgres
- rabbitmq
postgres:
image: postgres
restart: always
environment:
- POSTGRES_HOST=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
logging:
options:
max-size: 10m
max-file: "3"
ports:
- '5432:5432'
volumes:
- ./build/postgres:/docker-entrypoint-initdb.d
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
volumes:
- ./build/volumes/rabbitmq/data/:/var/lib/rabbitmq/
- ./build/volumes/rabbitmq/log/:/var/log/rabbitmq