-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
111 lines (104 loc) · 2.39 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
version: "3.9"
volumes:
db-data: {}
redis-data: {}
backend-ignore: {}
client-ignore: {}
networks:
coris:
services:
db:
container_name: mongodb
image: mongo
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: "admin"
MONGO_INITDB_ROOT_PASSWORD: "12345"
volumes:
- db-data:/data/db
ports:
- 27017:27017
networks:
- coris
redis:
container_name: redis
image: redis:6.2.5-alpine
restart: unless-stopped
volumes:
- redis-data:/data/redis
expose:
- "6379"
ports:
- "6379:6379"
networks:
- coris
command: redis-server --bind 0.0.0.0 --port 6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
backend:
build:
context: ./backend
dockerfile: Dockerfile
image: coris-backend
container_name: coris-backend
restart: unless-stopped
environment:
MONGOOSE_URL: mongodb://admin:12345@db:27017
COSMOSHUB_REST_API: '[{"address": "http://xx.xx.xx.xx:1317"}, {"address": "https://xxxx.top"}, {"address": "https://api-xxxxxx.network"}]'
COSMOSHUB_RPC: '[{"address": "http://xx.xx.xx.xx:26657"}, {"address": "https://xxxxx.org"}, {"address": "https://rpc.xxxxxxxx.io"}]'
BITCOIN_REST_API: '[{"address": "https://chain.api.btc.com"}]'
PORT: 5001
REDIS_HOST: redis
REDIS_PORT: 6379
command: npm run dev
depends_on:
- db
- redis
volumes:
- ./backend:/usr/app/backend
- backend-ignore:/usr/app/backend/node_modules
expose:
- "5001"
ports:
- "5001:5001"
networks:
- coris
client:
build:
context: ./client
dockerfile: Dockerfile
image: coris-client
container_name: coris-client
restart: unless-stopped
environment:
NEXT_PUBLIC_COSMOS_API: http://localhost:5001/cosmos
volumes:
- ./client:/usr/app/client
- client-ignore:/usr/app/client/node_modules
expose:
- "3000"
ports:
- "3000:3000"
command: npm run dev
depends_on:
- db
- backend
- redis
networks:
- coris
adminer:
profiles: ["adminer"]
container_name: local_adminer
image: adminer
restart: unless-stopped
environment:
ADMINER_DESIGN: dracula
ports:
- 3333:8080
depends_on:
- db
networks:
- coris