Skip to content

Commit

Permalink
added logging options to control file storage for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-landiak committed Dec 20, 2024
1 parent 8c1d284 commit fe53f60
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ services:
image: "postgres:15"
ports:
- "5432"
logging:
driver: "json-file"
options:
max-size: "200m"
max-file: "5"
environment:
POSTGRES_DB: thingsboard_mqtt_broker
POSTGRES_PASSWORD: postgres
Expand All @@ -32,6 +37,11 @@ services:
image: "bitnami/kafka:3.5.1"
ports:
- "9092"
logging:
driver: "json-file"
options:
max-size: "200m"
max-file: "5"
env_file:
- kafka.env
volumes:
Expand Down
10 changes: 10 additions & 0 deletions msa/tbmq/configs/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ services:
image: "postgres:15"
ports:
- "5432"
logging:
driver: "json-file"
options:
max-size: "200m"
max-file: "5"
environment:
POSTGRES_DB: thingsboard_mqtt_broker
POSTGRES_PASSWORD: postgres
Expand All @@ -30,6 +35,11 @@ services:
image: "bitnami/kafka:3.5.1"
ports:
- "9092"
logging:
driver: "json-file"
options:
max-size: "200m"
max-file: "5"
environment:
KAFKA_CFG_NODE_ID: 0
KAFKA_CFG_PROCESS_ROLES: controller,broker
Expand Down

0 comments on commit fe53f60

Please sign in to comment.