2023-01-03 17:10:02 +00:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
x-dls-variables: &dls-variables
|
2023-07-04 08:17:34 +00:00
|
|
|
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
|
2023-01-03 17:10:02 +00:00
|
|
|
DATABASE: sqlite:////app/database/db.sqlite
|
|
|
|
DEBUG: false
|
|
|
|
|
|
|
|
services:
|
2023-01-04 16:46:02 +00:00
|
|
|
dls:
|
|
|
|
image: collinwebdesigns/fastapi-dls:latest
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
<<: *dls-variables
|
2023-01-03 17:10:02 +00:00
|
|
|
ports:
|
2023-07-04 08:24:11 +00:00
|
|
|
- "443:443"
|
2023-01-03 17:10:02 +00:00
|
|
|
volumes:
|
2023-07-04 08:24:11 +00:00
|
|
|
- /opt/docker/fastapi-dls/cert:/app/cert
|
|
|
|
- dls-db:/app/database
|
|
|
|
logging: # optional, for those who do not need logs
|
|
|
|
driver: "json-file"
|
|
|
|
options:
|
|
|
|
max-file: 5
|
|
|
|
max-size: 10m
|
2023-01-03 17:10:02 +00:00
|
|
|
|
|
|
|
volumes:
|
2023-07-04 08:24:11 +00:00
|
|
|
dls-db:
|