2023-01-03 20:10:02 +03:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
x-dls-variables: &dls-variables
|
2023-07-04 11:17:34 +03: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 20:10:02 +03:00
|
|
|
DATABASE: sqlite:////app/database/db.sqlite
|
|
|
|
DEBUG: false
|
|
|
|
|
|
|
|
services:
|
2023-01-04 19:46:02 +03:00
|
|
|
dls:
|
|
|
|
image: collinwebdesigns/fastapi-dls:latest
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
<<: *dls-variables
|
2023-01-03 20:10:02 +03:00
|
|
|
ports:
|
2023-07-04 11:24:11 +03:00
|
|
|
- "443:443"
|
2023-01-03 20:10:02 +03:00
|
|
|
volumes:
|
2023-07-04 11:24:11 +03: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 20:10:02 +03:00
|
|
|
|
|
|
|
volumes:
|
2023-07-04 11:24:11 +03:00
|
|
|
dls-db:
|