@@ -10,10 +10,11 @@ services:
10
10
proxy :
11
11
container_name : zmq_proxy
12
12
image : ghcr.io/kile/zmq-proxy:latest
13
- deploy :
14
- resources :
15
- limits :
16
- memory : 512M
13
+ logging :
14
+ driver : " json-file"
15
+ options :
16
+ max-file : " 3" # number of files or file count
17
+ max-size : " 10m" # file size
17
18
build :
18
19
context : " ./zmq_proxy"
19
20
target : ${MODE:-prod}
@@ -52,6 +53,11 @@ services:
52
53
restart : unless-stopped
53
54
depends_on :
54
55
- proxy
56
+ logging :
57
+ driver : " json-file"
58
+ options :
59
+ max-file : " 5" # number of files or file count
60
+ max-size : " 10m" # file size
55
61
<< : *common-labels
56
62
57
63
bot :
@@ -75,15 +81,16 @@ services:
75
81
depends_on :
76
82
- api
77
83
- proxy
84
+ logging :
85
+ driver : " json-file"
86
+ options :
87
+ max-file : " 10" # number of files or file count
88
+ max-size : " 10m" # file size
78
89
<< : *common-labels
79
90
80
91
grafana :
81
92
image : grafana/grafana:10.4.2
82
93
restart : unless-stopped
83
- deploy :
84
- resources :
85
- limits :
86
- memory : 512M
87
94
ports :
88
95
- ' 3000:3000'
89
96
volumes :
@@ -92,6 +99,11 @@ services:
92
99
- ./grafana/datasources:/etc/grafana/provisioning/datasources
93
100
env_file :
94
101
- .env
102
+ logging :
103
+ driver : " json-file"
104
+ options :
105
+ max-file : " 3" # number of files or file count
106
+ max-size : " 10m" # file size
95
107
96
108
prometheus :
97
109
image : prom/prometheus
@@ -104,28 +116,30 @@ services:
104
116
volumes :
105
117
- ./prometheus:/etc/prometheus
106
118
- prom_data:/prometheus
119
+ logging :
120
+ driver : " json-file"
121
+ options :
122
+ max-file : " 3" # number of files or file count
123
+ max-size : " 10m" # file size
107
124
108
125
loki :
109
126
image : grafana/loki:latest
110
127
container_name : loki
111
- deploy :
112
- resources :
113
- limits :
114
- memory : 1024M
115
128
ports :
116
129
- " 3100:3100"
117
130
command : -config.file=/etc/loki/config.yml
118
131
volumes :
119
132
- ./loki/config.yml:/etc/loki/config.yml
120
133
- loki_data:/loki
134
+ logging :
135
+ driver : " json-file"
136
+ options :
137
+ max-file : " 5" # number of files or file count
138
+ max-size : " 10m" # file size
121
139
122
140
alloy :
123
141
image : grafana/alloy:latest
124
142
container_name : alloy
125
- deploy :
126
- resources :
127
- limits :
128
- memory : 1024M
129
143
ports :
130
144
- 12345:12345
131
145
- 4317:4317
@@ -137,6 +151,11 @@ services:
137
151
command : run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy
138
152
depends_on :
139
153
- loki
154
+ logging :
155
+ driver : " json-file"
156
+ options :
157
+ max-file : " 5" # number of files or file count
158
+ max-size : " 50m" # file size
140
159
141
160
volumes :
142
161
prom_data :
0 commit comments