diff --git a/docker-compose.yml b/docker-compose.yml index d525e50..50499f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,8 +14,15 @@ services: - TZ=${TZ:-Asia/Seoul} - LOTTO_ALL_URL=${LOTTO_ALL_URL:-https://smok95.github.io/lotto/results/all.json} - LOTTO_LATEST_URL=${LOTTO_LATEST_URL:-https://smok95.github.io/lotto/results/latest.json} + - PYTHONPATH=/app:/shared volumes: - ${RUNTIME_PATH}/data:/app/data + - ./_shared:/shared:ro + logging: + driver: "json-file" + options: + max-size: "10m" + max-file: "3" healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"] interval: 60s