-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
151 lines (139 loc) · 3.32 KB
/
docker-compose.yml
File metadata and controls
151 lines (139 loc) · 3.32 KB
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
services:
app_build:
image: app
container_name: app_build
build:
context: .
dockerfile: Dockerfile
setup:
image: app
container_name: setup
environment:
REDIS_URL: redis://default:@redis:6379
POSTGRES_URL: postgres://username:password@postgres/api
MEILISEARCH_URL: http://meilisearch:7700
RABBITMQ_URL: amqp://username:password@rabbitmq:5672
command: ["sh", "-c", "/app/setup"]
depends_on:
- app_build
- redis
- postgres
- meilisearch
api:
image: app
container_name: api
environment:
ROCKET_ADDRESS: 0.0.0.0
ROCKET_PORT: 8000
BINARY: api
REDIS_URL: redis://default:@redis:6379
POSTGRES_URL: postgres://username:password@postgres/api
MEILISEARCH_URL: http://meilisearch:7700
RABBITMQ_URL: amqp://username:password@rabbitmq:5672
ports:
- 8000:8000
restart: always
command: ["sh", "-c", "/app/api"]
depends_on:
- app_build
- redis
- postgres
dynode:
container_name: dynode
build:
context: .
dockerfile: dynode.Dockerfile
environment:
ADDRESS: 0.0.0.0
PORT: 8002
ports:
- 8002:8002
restart: always
command: ["sh", "-c", "/app/dynode"]
depends_on:
- redis
- postgres
volumes:
- ./apps/dynode/chains.yml:/app/chains.yml
networks:
default: {}
dynode_internal:
aliases:
- ethereum.dynode.internal
- bitcoin.dynode.internal
daemon:
image: app
container_name: daemon
environment:
REDIS_URL: redis://default:@redis:6379
POSTGRES_URL: postgres://username:password@postgres/api
MEILISEARCH_URL: http://meilisearch:7700
RABBITMQ_URL: amqp://username:password@rabbitmq:5672
command: ["sh", "-c", "/app/daemon search"]
depends_on:
- app_build
- setup
- redis
- postgres
networks:
default: {}
dynode_internal: {}
parser:
image: app
container_name: parser
environment:
POSTGRES_URL: postgres://username:password@postgres/api
RABBITMQ_URL: amqp://username:password@rabbitmq:5672
CHAINS_BITCOIN_URL: http://bitcoin.dynode.internal:8002
command: ["sh", "-c", "/app/parser bitcoin"]
depends_on:
- app_build
- setup
- postgres
- redis
- meilisearch
networks:
default: {}
dynode_internal: {}
redis:
image: redis:7.0-alpine
container_name: redis
restart: always
ports:
- 6379:6379
postgres:
image: postgres:latest
container_name: postgres
ports:
- 5432:5432
restart: always
environment:
POSTGRES_USER: username
POSTGRES_PASSWORD: password
POSTGRES_DB: api
rabbitmq:
image: rabbitmq:4-management
container_name: rabbitmq
restart: unless-stopped
ports:
- 5672:5672
- 15672:15672
environment:
RABBITMQ_DEFAULT_USER: username
RABBITMQ_DEFAULT_PASS: password
meilisearch:
image: getmeili/meilisearch:v1.21.0
container_name: meilisearch
restart: always
ports:
- 7700:7700
environment:
MEILI_NO_ANALYTICS: true
MEILI_EXPERIMENTAL_ENABLE_METRICS: true
volumes:
- meilisearch:/meili_data
volumes:
postgres:
meilisearch:
networks:
dynode_internal: