-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
176 lines (176 loc) · 4.35 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
version: '3'
services:
postgres:
container_name: postgres
env_file: variables.env
expose:
- 5432
ports:
- 15432:5432
build:
context: .
dockerfile: postgres.dockerfile
networks:
- pagarme_network
redis:
container_name: redis
image: redis:alpine
ports:
- 6379:6379
networks:
- pagarme_network
transaction_queuer:
container_name: transaction_queuer
restart: unless-stopped
working_dir: /usr/src/transaction-queuer
build:
context: ./transaction-queuer
dockerfile: ../node_app.dockerfile
env_file: variables.env
expose:
- 3000
ports:
- 3000:3000
volumes:
- ./transaction-queuer/:/usr/src/transaction-queuer
networks:
- pagarme_network
transaction_persister:
container_name: transaction_persister
restart: unless-stopped
working_dir: /usr/src/transaction-persister
build:
context: ./transaction-persister
dockerfile: ../node_app.dockerfile
depends_on:
- postgres
env_file: variables.env
volumes:
- ./transaction-persister/:/usr/src/transaction-persister
networks:
- pagarme_network
transaction_cache_writer:
container_name: transaction_cache_write
restart: unless-stopped
working_dir: /usr/src/transaction-cache-writer
build:
context: ./transaction-cache-writer
dockerfile: ../node_app.dockerfile
depends_on:
- redis
env_file: variables.env
volumes:
- ./transaction-cache-writer/:/usr/src/transaction-cache-writer
networks:
- pagarme_network
transaction_cache_reader:
container_name: transaction_cache_reader
restart: unless-stopped
working_dir: /usr/src/transaction-cache-reader
build:
context: ./transaction-cache-reader
dockerfile: ../node_app.dockerfile
depends_on:
- redis
env_file: variables.env
expose:
- 3010
ports:
- 3010:3010
volumes:
- ./transaction-cache-reader/:/usr/src/transaction-cache-reader
networks:
- pagarme_network
playable_persister:
container_name: playable_persister
restart: unless-stopped
working_dir: /usr/src/playable-persister
build:
context: ./playable-persister
dockerfile: ../node_app.dockerfile
env_file: variables.env
volumes:
- ./playable-persister/:/usr/src/playable-persister
networks:
- pagarme_network
playable_cache_writer:
container_name: playable_cache_writer
restart: unless-stopped
working_dir: /usr/src/playable-cache-writer
build:
context: ./playable-cache-writer
dockerfile: ../node_app.dockerfile
depends_on:
- redis
env_file: variables.env
volumes:
- ./playable-cache-writer/:/usr/src/playable-cache-writer
networks:
- pagarme_network
playable_cache_reader:
container_name: playable_cache_reader
restart: unless-stopped
working_dir: /usr/src/playable-cache-reader
build:
context: ./playable-cache-reader
dockerfile: ../node_app.dockerfile
depends_on:
- redis
env_file: variables.env
expose:
- 3020
ports:
- 3020:3020
volumes:
- ./playable-cache-reader/:/usr/src/playable-cache-reader
networks:
- pagarme_network
fail_writer:
container_name: fail_writer
restart: unless-stopped
working_dir: /usr/src/fail-writer
build:
context: ./fail-writer
dockerfile: ../node_app.dockerfile
depends_on:
- redis
env_file: variables.env
volumes:
- ./fail-writer/:/usr/src/fail-writer
networks:
- pagarme_network
fail_reader:
container_name: fail_reader
restart: unless-stopped
working_dir: /usr/src/fail-reader
build:
context: ./fail-reader
dockerfile: ../node_app.dockerfile
depends_on:
- redis
env_file: variables.env
expose:
- 3030
ports:
- 3030:3030
volumes:
- ./fail-reader/:/usr/src/fail-reader
networks:
- pagarme_network
gateway:
container_name: gateway
restart: unless-stopped
working_dir: /usr/src/gateway
build:
context: ./gateway
dockerfile: ../gateway.dockerfile
volumes:
- ./gateway/:/usr/src/gateway
env_file: variables.env
ports:
- 8080:8080
networks:
- pagarme_network
networks:
pagarme_network:
driver: bridge