Skip to content

Commit

Permalink
docker: limit the log size to 500MB (#3702)
Browse files Browse the repository at this point in the history
  • Loading branch information
subodh1810 committed May 28, 2021
1 parent c61fc3d commit d0d3378
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
version: "3.7"

#https://github.com/compose-spec/compose-spec/blob/master/spec.md#using-extensions-as-fragments
x-logging: &default-logging
options:
max-size: "100m"
max-file: "5"
driver: json-file
services:
# hook in case we need to add init behavior
# every root service (no depends_on) should depend on init
init:
image: airbyte/init:${VERSION}
logging: *default-logging
container_name: init
command: /bin/sh -c "./scripts/create_mount_directories.sh /local_parent ${HACK_LOCAL_ROOT_PARENT} ${LOCAL_ROOT}"
environment:
Expand All @@ -14,6 +20,7 @@ services:
- ${HACK_LOCAL_ROOT_PARENT}:/local_parent
db:
image: airbyte/db:${VERSION}
logging: *default-logging
container_name: airbyte-db
restart: unless-stopped
environment:
Expand All @@ -30,6 +37,7 @@ services:
- data:/app/seed
scheduler:
image: airbyte/scheduler:${VERSION}
logging: *default-logging
container_name: airbyte-scheduler
restart: unless-stopped
environment:
Expand All @@ -56,6 +64,7 @@ services:
- data:${CONFIG_ROOT}
server:
image: airbyte/server:${VERSION}
logging: *default-logging
container_name: airbyte-server
restart: unless-stopped
environment:
Expand All @@ -79,6 +88,7 @@ services:
- data:${CONFIG_ROOT}
webapp:
image: airbyte/webapp:${VERSION}
logging: *default-logging
container_name: airbyte-webapp
restart: unless-stopped
ports:
Expand All @@ -93,6 +103,7 @@ services:
- INTERNAL_API_HOST=${INTERNAL_API_HOST}
airbyte-temporal:
image: temporalio/auto-setup:1.7.0
logging: *default-logging
container_name: airbyte-temporal
restart: unless-stopped
ports:
Expand Down

0 comments on commit d0d3378

Please sign in to comment.