turned base into shortpaste
This commit is contained in:
parent
5ed1af1f7f
commit
3f2e07511e
@ -1,7 +1,12 @@
|
||||
---
|
||||
services:
|
||||
app:
|
||||
shortpaste:
|
||||
image: adyanth/shortpaste:${SHORTPASTE_VERSION}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- SP_STORAGE_PATH=/data
|
||||
- SP_USERNAME=${SHORTPASTE_ADMIN_USER}
|
||||
- SP_PASSWORD=${SHORTPASTE_ADMIN_PASS}
|
||||
labels:
|
||||
### Section Træfik
|
||||
- traefik.enable=${TRAEFIK_ENABLED}
|
||||
@ -27,6 +32,8 @@ services:
|
||||
- diun.sort_tags=${DIUN_SORTALGO}
|
||||
- diun.include_tags=${DIUN_INCLUDE}
|
||||
- diun.exclude_tags=${DIUN_EXCLUDE}
|
||||
volumes:
|
||||
- ${SHORTPASTE_DATA}:/data
|
||||
networks:
|
||||
- traefik
|
||||
|
||||
|
14
env.example
14
env.example
@ -1,10 +1,10 @@
|
||||
# Træfik
|
||||
TRAEFIK_ENABLED=true
|
||||
TRAEFIK_NETWORK=traefik
|
||||
TRAEFIK_ROUTER=app_example_com
|
||||
TRAEFIK_SERVICE=app_example_com
|
||||
TRAEFIK_SERVICE_PORT=80
|
||||
TRAEFIK_MATCHRULE=Host(`app.example.com`)
|
||||
TRAEFIK_ROUTER=shortpaste_example_com
|
||||
TRAEFIK_SERVICE=shortpaste_example_com
|
||||
TRAEFIK_SERVICE_PORT=8080
|
||||
TRAEFIK_MATCHRULE=Host(`shortpaste.example.com`)
|
||||
TRAEFIK_TLSENABLED=true
|
||||
TRAEFIK_CERTRESOLVER=letsencrypt
|
||||
TRAEFIK_HTTP_MIDDLEWARES=http-to-https
|
||||
@ -16,3 +16,9 @@ DIUN_WATCHREPO=true
|
||||
DIUN_SORTALGO=semver
|
||||
DIUN_INCLUDE=
|
||||
DIUN_EXCLUDE=
|
||||
|
||||
# Short{Paste}
|
||||
SHORTPASTE_VERSION=
|
||||
SHORTPASTE_DATA=./data
|
||||
SHORTPASTE_ADMIN_USER=admin
|
||||
SHORTPASTE_ADMIN_PASS=admin
|
||||
|
Reference in New Issue
Block a user