-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
95 lines (89 loc) · 2.43 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
version: '3'
services:
# Uncomment this when you want to save data to your local disk
# postgres_db:
# image: postgres:latest
# container_name: postgres_db
# # environment:
# # - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
# # - POSTGRES_USER=${POSTGRES_USER}
# # - POSTGRES_DB=${POSTGRES_DB}
# ports:
# - "5432:5432"
# volumes:
# - C:\postgresLocalStorage:/var/lib/postgresql/data
# Comment this postgres_db below when you run postgres_db above
postgres_db:
image: postgres:2.0.0
container_name: postgres_db
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- "5432:5432"
rabbitmq:
image: rabbitmq:3-management
container_name: 'rabbitmq'
ports:
- 5672:5672
- 15672:15672
volumes:
- C:\Users\NGUYEN CONG DUY\AppData\Roaming\RabbitMQ\db:/var/lib/rabbitmq/
- C:\Users\NGUYEN CONG DUY\AppData\Roaming\RabbitMQ\log:/var/log/rabbitmq
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
etl-service:
image: etl_ethereum:1.0.0
container_name: etl-service
ports:
- "5000:5000"
environment:
- DATABASE_URL_FOR_EXTRACT=${DATABASE_URL_FOR_EXTRACT}
- RABBITMQ=${RABBITMQ}
depends_on:
- postgres_db
- rabbitmq
explorer_service:
image: explorer_service:1.0.0
container_name: explorer_service
ports:
- "3000:3000"
depends_on:
- postgres_db
environment:
- DATABASE_URL=${DATABASE_URL}
- PROVIDER=${PROVIDER}
command: >
bash -c "npx prisma generate
&& npm run dev"
decode-log-service:
image: decode_log:1.0.0
container_name: decode-log-service
environment:
- DATABASE_URL=${DATABASE_URL}
- RABBITMQ=${RABBITMQ}
command: bash -c "npm run dev"
ports:
- "3005:3005"
depends_on:
postgres_db:
condition: service_started
rabbitmq:
condition: service_healthy
decompile-contract-service:
image: decompile_contract:1.0.0
container_name: decompile-contract-service
ports:
- "3006:3006"
environment:
- DATABASE_URL_FOR_EXTRACT=${DATABASE_URL_FOR_EXTRACT}
- RABBITMQ=${RABBITMQ}
depends_on:
postgres_db:
condition: service_started
rabbitmq:
condition: service_healthy