26 lines
1.3 KiB
YAML
26 lines
1.3 KiB
YAML
|
version: "2"
|
||
|
|
||
|
services:
|
||
|
lenpaste:
|
||
|
image: git.lcomrade.su/root/lenpaste:latest
|
||
|
restart: always
|
||
|
environment:
|
||
|
# All parameters are optional
|
||
|
- LENPASTE_ADDRESS=:80 # Set -address flag
|
||
|
- LENPASTE_DB_DRIVER=sqlite3 # Set -db-driver flag
|
||
|
- LENPASTE_DB_SOURCE=/data/lenpaste.db # Set -db-source flag
|
||
|
- LENPASTE_DB_CLEANUP_PERIOD=3h # Set -db-cleanup-period flag
|
||
|
- LENPASTE_ROBOTS_DISALLOW=true # If true set -robots-disallow flag
|
||
|
- LENPASTE_TITLE_MAX_LENGTH=200 # Set -title-max-length flag. If 0 disable title, if -1 disable length limi - LENPASTE_BODY_MAX_LENGTH=20000 # Set -body-max-length flag. If -1 disable length limit. Can't be -1.
|
||
|
- LENPASTE_MAX_PASTE_LIFETIME=never # Set -max-paste-lifetime flag. Examples: 2d, 12h, 7m.
|
||
|
- LENPASTE_ADMIN_NAME=adminakademia # Set -admin-name flag.
|
||
|
- LENPASTE_ADMIN_MAIL=kontakt@adminakademia.pl # Set -admin-mail flag.
|
||
|
volumes:
|
||
|
# /data/lenpaste.db - SQLite DB
|
||
|
# /data/about.html - About this server
|
||
|
# /data/rules.html - This server rules
|
||
|
- "/docker/lenpaste:/data"
|
||
|
- "/etc/timezone:/etc/timezone:ro"
|
||
|
- "/etc/localtime:/etc/localtime:ro"
|
||
|
ports:
|
||
|
- "8765:80"
|