Skip to content

Commit e58ef0f

Browse files
committed
Refactor logging configuration for MinIO service for the Graylog
1 parent 98ecda8 commit e58ef0f

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docker-compose.tmpl.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ x-base-app: &base-app
1212
networks:
1313
- internal
1414
- db-network
15-
logging:
15+
logging: &logging
1616
driver: gelf
1717
options:
1818
gelf-address: "udp://127.0.0.1:12201"
@@ -67,11 +67,15 @@ services:
6767
volumes:
6868
- minio_data:/data
6969
environment:
70+
<<: *logging-env
71+
hive_service: minio
7072
MINIO_ROOT_USER: ${BEABEE_MINIO_ROOT_USER:-minioadmin}
7173
MINIO_ROOT_PASSWORD: ${BEABEE_MINIO_ROOT_PASSWORD:-minioadmin}
7274
MINIO_REGION: ${BEABEE_MINIO_REGION:-us-east-1}
7375
BEABEE_MINIO_BUCKET: ${BEABEE_MINIO_BUCKET:-uploads}
7476
BEABEE_MINIO_ENDPOINT: ${BEABEE_MINIO_ENDPOINT:-http://minio:9000}
77+
logging:
78+
<<: *logging
7579
networks:
7680
- internal
7781

docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ x-base-app: &base-app
1212
networks:
1313
- internal
1414
- db-network
15-
logging:
15+
logging: &logging
1616
driver: gelf
1717
options:
1818
gelf-address: "udp://127.0.0.1:12201"
@@ -67,11 +67,15 @@ services:
6767
volumes:
6868
- minio_data:/data
6969
environment:
70+
<<: *logging-env
71+
hive_service: minio
7072
MINIO_ROOT_USER: ${BEABEE_MINIO_ROOT_USER:-minioadmin}
7173
MINIO_ROOT_PASSWORD: ${BEABEE_MINIO_ROOT_PASSWORD:-minioadmin}
7274
MINIO_REGION: ${BEABEE_MINIO_REGION:-us-east-1}
7375
BEABEE_MINIO_BUCKET: ${BEABEE_MINIO_BUCKET:-uploads}
7476
BEABEE_MINIO_ENDPOINT: ${BEABEE_MINIO_ENDPOINT:-http://minio:9000}
77+
logging:
78+
<<: *logging
7579
networks:
7680
- internal
7781

0 commit comments

Comments
 (0)