Skip to content

Commit

Permalink
Merge pull request #75 from NYCPlanning/74-fix-default-logging-to-use…
Browse files Browse the repository at this point in the history
…-less-disk-space

Add local logging driver to all active containers
  • Loading branch information
pratishta authored Feb 12, 2024
2 parents 9240df1 + 3dc141f commit f4ac098
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ services:
- "80:80"
- "443:443"
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"

logging:
driver: "local"
options:
max-size: "200m"

api:
image: pelias/api:v5.53.0
container_name: pelias_api
Expand All @@ -22,6 +26,10 @@ services:
ports: [ "4000:4000" ]
volumes:
- "./pelias.json:/code/pelias.json"
logging:
driver: "local"
options:
max-size: "200m"

schema:
image: pelias/schema:v6.4.0
Expand All @@ -36,6 +44,10 @@ services:
user: "${DOCKER_USER}"
restart: always
ports: [ "4400:4400" ]
logging:
driver: "local"
options:
max-size: "200m"

csv-importer:
image: pelias/csv-importer:v2.13.0
Expand Down Expand Up @@ -63,6 +75,10 @@ services:
volumes:
- "./pelias.json:/code/pelias.json"
- "${DATA_DIR}:/data"
logging:
driver: "local"
options:
max-size: "200m"

elasticsearch:
image: pelias/elasticsearch:7.16.1
Expand All @@ -82,3 +98,7 @@ services:
soft: 65536
hard: 65536
cap_add: [ "IPC_LOCK" ]
logging:
driver: "local"
options:
max-size: "200m"
5 changes: 5 additions & 0 deletions pelias.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,10 @@
"85977539"
]
}
},
"logger": {
"level": "http",
"timestamp": true,
"colorize": true
}
}

0 comments on commit f4ac098

Please sign in to comment.