diff --git a/docker-compose.yml b/docker-compose.yml index cf8e041..379a929 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/env.example b/env.example index 263f7aa..ffba272 100644 --- a/env.example +++ b/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