Skip to content

Commit b62fc08

Browse files
authored
Update docker-compose.yml
1 parent 698bed4 commit b62fc08

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docker-compose/docker-compose.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ x-common-restart: &common-restart
99
x-graceful-stop: &graceful-stop
1010
stop_grace_period: 1m
1111
stop_signal: SIGINT
12+
x-common-logging: &common-logging
13+
logging:
14+
driver: "json-file"
15+
options:
16+
max-size: "100m"
17+
max-file: "3"
18+
x-elk-logging: &elk-logging
19+
logging:
20+
driver: gelf
21+
options:
22+
gelf-address: udp://logstash.services.local:12201
1223

1324
services:
1425
rails:
@@ -34,6 +45,7 @@ services:
3445
<<: *common-dns
3546
<<: *common-network
3647
<<: *common-restart
48+
<<: *elk-logging
3749

3850
networks:
3951
common:

0 commit comments

Comments
 (0)