-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
95 lines (86 loc) · 2.21 KB
/
docker-compose.local.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.8'
services:
sweets-broker:
container_name: sweets-broker
image: dleclercpro/sweets-broker:latest
build:
context: ./Apps
dockerfile: Broker.Dockerfile
ports:
- 8000:80
volumes:
- ./Apps/Broker/public:/apps/Broker/public # Client app for now
environment:
NODE_ENV: production
sweets-order:
container_name: sweets-order
image: dleclercpro/sweets-order:latest
build:
context: ./Apps
dockerfile: Order.Dockerfile
depends_on:
- sweets-broker
environment:
NODE_ENV: production
sweets-payment:
container_name: sweets-payment
image: dleclercpro/sweets-payment:latest
build:
context: ./Apps
dockerfile: Payment.Dockerfile
depends_on:
- sweets-broker
environment:
NODE_ENV: production
sweets-delivery:
container_name: sweets-delivery
image: dleclercpro/sweets-delivery:latest
build:
context: ./Apps
dockerfile: Delivery.Dockerfile
depends_on:
- sweets-broker
environment:
NODE_ENV: production
sweets-prometheus:
container_name: sweets-prometheus
image: dleclercpro/sweets-prometheus:latest
build:
context: ./Apps
dockerfile: Prometheus.Dockerfile
ports:
- 9090:9090
depends_on:
- sweets-node-exporter
- sweets-cadvisor
sweets-grafana:
container_name: sweets-grafana
image: dleclercpro/sweets-grafana:latest
build:
context: ./Apps
dockerfile: Grafana.Dockerfile
ports:
- 3000:3000
depends_on:
- sweets-prometheus
sweets-node-exporter:
container_name: sweets-node-exporter
image: prom/node-exporter
ports:
- 9100:9100
sweets-cadvisor:
container_name: sweets-cadvisor
image: gcr.io/cadvisor/cadvisor:v0.47.1 # M1/M2 Mac
platform: linux/aarch64 # M1/M2 Mac
privileged: true # Stops OOM warning
ports:
- 8080:8080
devices:
- /dev/kmsg:/dev/kmsg
volumes:
- /var/run:/var/run:ro
- /sys:/sys:ro
- /var/lib/docker/:/var/lib/docker:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/machine-id:/etc/machine-id:ro
- /var/lib/dbus/machine-id:/var/lib/dbus/machine-id:ro