From 70212e0edd7c327266e693f377d889a267c5adfd Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Mon, 30 Jan 2023 09:18:57 +0100 Subject: [PATCH] improved docker-compose examples --- README.md | 2 ++ docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 0da343b..86f1abe 100644 --- a/README.md +++ b/README.md @@ -69,10 +69,12 @@ Goto [`docker-compose.yml`](docker-compose.yml) for more advanced example (with version: '3.9' x-dls-variables: &dls-variables + TZ: Europe/Berlin # REQUIRED, set your timezone correctly on fastapi-dls AND YOUR CLIENTS !!! DLS_URL: localhost # REQUIRED, change to your ip or hostname DLS_PORT: 443 LEASE_EXPIRE_DAYS: 90 # 90 days is maximum DATABASE: sqlite:////app/database/db.sqlite + DEBUG: false services: dls: diff --git a/docker-compose.yml b/docker-compose.yml index b52a58a..3f02cdc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: environment: <<: *dls-variables volumes: + - /etc/timezone:/etc/timezone:ro - /opt/docker/fastapi-dls/cert:/app/cert # instance.private.pem, instance.public.pem - db:/app/database entrypoint: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--app-dir", "/app", "--proxy-headers"] @@ -30,6 +31,7 @@ services: - "80:80" # for "/leasing/v1/lessor/shutdown" used by windows guests, can't be changed! - "443:443" # first part must match "DLS_PORT" volumes: + - /etc/timezone:/etc/timezone:ro - /opt/docker/fastapi-dls/cert:/opt/cert healthcheck: test: ["CMD", "curl", "--insecure", "--fail", "https://localhost/-/health"]