diff --git a/docker-compose.yml b/docker-compose.yml index 5616b27..8abafba 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -82,3 +98,7 @@ services: soft: 65536 hard: 65536 cap_add: [ "IPC_LOCK" ] + logging: + driver: "local" + options: + max-size: "200m" diff --git a/pelias.json b/pelias.json index c9ef421..2b03280 100644 --- a/pelias.json +++ b/pelias.json @@ -39,5 +39,10 @@ "85977539" ] } + }, + "logger": { + "level": "http", + "timestamp": true, + "colorize": true } }