Skip to content

Commit ab09809

Browse files
HunteRoiHunteRoi
andauthored
chore: set services logging to rolling json files (#116)
Co-authored-by: HunteRoi <me@tinaeldevresse.eu>
1 parent f860fa4 commit ab09809

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

docker-compose.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,17 @@ x-restart-policy:
1313
&restart-policy
1414
restart: always
1515

16+
x-logging:
17+
&logging
18+
logging:
19+
driver: "json-file"
20+
options:
21+
max-size: "10m"
22+
max-file: "3"
23+
1624
services:
1725
database:
18-
<<: [*env-file, *network, *restart-policy]
26+
<<: [*env-file, *network, *restart-policy, *logging]
1927
build:
2028
context: .
2129
dockerfile: ./Database.Dockerfile
@@ -32,7 +40,7 @@ services:
3240
retries: 60
3341

3442
bot:
35-
<<: [*env-file, *network, *restart-policy]
43+
<<: [*env-file, *network, *restart-policy, *logging]
3644
environment:
3745
- NODE_ENV=${NODE_ENV}
3846
build:

0 commit comments

Comments
 (0)