-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
129 lines (115 loc) · 2.83 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '3.8'
services:
sweets-nginx:
container_name: sweets-nginx
image: dleclercpro/reverse-proxy:latest
restart: always
ports:
- 443:443 # HTTPS
- 80:80 # HTTP
networks:
- custom
volumes:
- letsencrypt:/etc/letsencrypt # Keep SSL certificates
- dhparams:/usr/dhparams # Keep DH params file
depends_on:
- sweets-broker
env_file:
- .env
sweets-broker:
container_name: sweets-broker
image: dleclercpro/sweets-broker:latest
build:
context: ./Apps
dockerfile: Broker.Dockerfile
networks:
- custom
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
networks:
- custom
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
networks:
- custom
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
networks:
- custom
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
networks:
- custom
depends_on:
- sweets-node-exporter
- sweets-cadvisor
sweets-grafana:
container_name: sweets-grafana
image: dleclercpro/sweets-grafana:latest
build:
context: ./Apps
dockerfile: Grafana.Dockerfile
networks:
- custom
depends_on:
- sweets-prometheus
sweets-node-exporter:
container_name: sweets-node-exporter
image: prom/node-exporter
networks:
- custom
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
networks:
- custom
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
volumes:
letsencrypt:
dhparams:
networks:
# Custom network to communicate with external services/containers
custom:
external: true