turned base into shortpaste

This commit is contained in:
Bryan Joshua Pedini 2022-09-18 16:05:06 +02:00
parent 5ed1af1f7f
commit 3f2e07511e
2 changed files with 18 additions and 5 deletions

View File

@ -1,7 +1,12 @@
--- ---
services: services:
app: shortpaste:
image: adyanth/shortpaste:${SHORTPASTE_VERSION}
restart: unless-stopped restart: unless-stopped
environment:
- SP_STORAGE_PATH=/data
- SP_USERNAME=${SHORTPASTE_ADMIN_USER}
- SP_PASSWORD=${SHORTPASTE_ADMIN_PASS}
labels: labels:
### Section Træfik ### Section Træfik
- traefik.enable=${TRAEFIK_ENABLED} - traefik.enable=${TRAEFIK_ENABLED}
@ -27,6 +32,8 @@ services:
- diun.sort_tags=${DIUN_SORTALGO} - diun.sort_tags=${DIUN_SORTALGO}
- diun.include_tags=${DIUN_INCLUDE} - diun.include_tags=${DIUN_INCLUDE}
- diun.exclude_tags=${DIUN_EXCLUDE} - diun.exclude_tags=${DIUN_EXCLUDE}
volumes:
- ${SHORTPASTE_DATA}:/data
networks: networks:
- traefik - traefik

View File

@ -1,10 +1,10 @@
# Træfik # Træfik
TRAEFIK_ENABLED=true TRAEFIK_ENABLED=true
TRAEFIK_NETWORK=traefik TRAEFIK_NETWORK=traefik
TRAEFIK_ROUTER=app_example_com TRAEFIK_ROUTER=shortpaste_example_com
TRAEFIK_SERVICE=app_example_com TRAEFIK_SERVICE=shortpaste_example_com
TRAEFIK_SERVICE_PORT=80 TRAEFIK_SERVICE_PORT=8080
TRAEFIK_MATCHRULE=Host(`app.example.com`) TRAEFIK_MATCHRULE=Host(`shortpaste.example.com`)
TRAEFIK_TLSENABLED=true TRAEFIK_TLSENABLED=true
TRAEFIK_CERTRESOLVER=letsencrypt TRAEFIK_CERTRESOLVER=letsencrypt
TRAEFIK_HTTP_MIDDLEWARES=http-to-https TRAEFIK_HTTP_MIDDLEWARES=http-to-https
@ -16,3 +16,9 @@ DIUN_WATCHREPO=true
DIUN_SORTALGO=semver DIUN_SORTALGO=semver
DIUN_INCLUDE= DIUN_INCLUDE=
DIUN_EXCLUDE= DIUN_EXCLUDE=
# Short{Paste}
SHORTPASTE_VERSION=
SHORTPASTE_DATA=./data
SHORTPASTE_ADMIN_USER=admin
SHORTPASTE_ADMIN_PASS=admin