generated from multiversx/mx-template-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
109 lines (101 loc) · 2.21 KB
/
docker-compose.dev.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
version: '3.4'
services:
api:
build:
context: .
dockerfile: ./apps/api/Dockerfile
target: development
command: npm run start:devnet:watch
depends_on:
- mongodb
- database
- redis
volumes:
- .:/usr/src/app
#- /usr/src/app/node_modules
ports:
- '3000:3000'
- '3005:3005'
- '4000:4000'
cache-warmer:
build:
context: .
dockerfile: ./apps/cache-warmer/Dockerfile
target: development
command: npm run start:cache-warmer:devnet:watch
depends_on:
- mongodb
- database
- redis
volumes:
- .:/usr/src/app
#- /usr/src/app/node_modules
ports:
- '5201:5201'
queue-worker:
build:
context: .
dockerfile: ./apps/queue-worker/Dockerfile
target: development
command: npm run start:queue-worker:devnet:watch
depends_on:
- mongodb
- database
- redis
volumes:
- .:/usr/src/app
#- /usr/src/app/node_modules
ports:
- '8000:8000'
transactions-processor:
build:
context: .
dockerfile: ./apps/transactions-processor/Dockerfile
target: development
command: npm run start:transactions-processor:devnet:watch
depends_on:
- mongodb
- database
- redis
volumes:
- .:/usr/src/app
#- /usr/src/app/node_modules
ports:
- '5202:5202'
redis:
image: "redis:alpine"
command: redis-server
ports:
- "6379:6379"
environment:
- REDIS_REPLICATION_MODE=master
database:
image: "mysql:latest"
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=example
mongodb:
image: mongo:latest
environment:
- MONGODB_DATABASE="example"
ports:
- 27017:27017
prometheus:
image: prom/prometheus:latest
command: '--config.file=/etc/prometheus/prometheus.yml'
volumes:
- ./monitoring/prometheus:/etc/prometheus
ports:
- 9090:9090
extra_hosts:
- host.docker.internal:host-gateway
grafana:
depends_on:
- prometheus
image: grafana/grafana:latest
volumes:
- ./monitoring/grafana:/etc/grafana/provisioning
ports:
- 3010:3000