This repository has been archived on 2022-09-18. You can view files and clone it, but cannot push or open issues or pull requests.
shortpaste/docker-compose.yml

44 lines
1.7 KiB
YAML
Raw Normal View History

2022-09-18 13:56:56 +00:00
---
services:
2022-09-18 14:05:06 +00:00
shortpaste:
image: adyanth/shortpaste:${SHORTPASTE_VERSION}
2022-09-18 13:56:56 +00:00
restart: unless-stopped
2022-09-18 14:05:06 +00:00
environment:
- SP_STORAGE_PATH=/data
- SP_USERNAME=${SHORTPASTE_ADMIN_USER}
- SP_PASSWORD=${SHORTPASTE_ADMIN_PASS}
2022-09-18 13:56:56 +00:00
labels:
### Section Træfik
- traefik.enable=${TRAEFIK_ENABLED}
- traefik.docker.network=${TRAEFIK_NETWORK}
## HTTP
- traefik.http.routers.http-${TRAEFIK_ROUTER}.entrypoints=http
# redirect to HTTPS only
- traefik.http.routers.http-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_HTTP_MIDDLEWARES}
- traefik.http.routers.http-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE}
## HTTPS
- traefik.http.routers.https-${TRAEFIK_ROUTER}.entrypoints=https
# configure the exposed service
- traefik.http.routers.https-${TRAEFIK_ROUTER}.middlewares=${TRAEFIK_HTTPS_MIDDLEWARES}
- traefik.http.routers.https-${TRAEFIK_ROUTER}.rule=${TRAEFIK_MATCHRULE}
# enable TLS and its certificate provider
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls=${TRAEFIK_TLSENABLED}
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER}
# specify a service so a custom port can be used
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT}
### Section Diun
- diun.enable=${DIUN_ENABLE}
- diun.watch_repo=${DIUN_WATCHREPO}
- diun.sort_tags=${DIUN_SORTALGO}
- diun.include_tags=${DIUN_INCLUDE}
- diun.exclude_tags=${DIUN_EXCLUDE}
2022-09-18 14:05:06 +00:00
volumes:
- ${SHORTPASTE_DATA}:/data
2022-09-18 13:56:56 +00:00
networks:
- traefik
networks:
traefik:
external: true
name: ${TRAEFIK_NETWORK}