webdav/stack.production.yml

55 lines
1.6 KiB
YAML

version: "3.7"
networks:
traefik:
external: true
default:
services:
web:
image: registry.gitlab.com/timvisee/send:latest
depends_on:
- redis
environment:
REDIS_HOST: send_redis
FILE_DIR: /uploads
DETECT_BASE_URL: "true"
MAX_FILE_SIZE: 4294967296 # 2147483648 #4,294,967,296
MAX_FILES_PER_ARCHIVE: 64
MAX_DOWNLOADS: 20
DOWNLOAD_COUNTS: "2,1,2,5,10,15,25,50,100,1000"
EXPIRE_TIMES_SECONDS: "3600,86400,604800,2592000,31536000"
DEFAULT_DOWNLOADS: "1"
DEFAULT_EXPIRE_SECONDS: "86400"
volumes:
- /mnt/tank/persist/aenow.com/send/staging/uploads:/uploads
networks:
- default
- traefik
deploy:
replicas: 1
labels:
- "traefik.enable=true"
- "traefik.http.routers.production_send_web.tls=true"
- "traefik.http.services.production_send_web.loadbalancer.server.port=1443"
- "traefik.http.routers.production_send_web.rule=Host(`send.aenow.com`)"
- "traefik.http.routers.production_send_web.entrypoints=websecure"
- "traefik.http.routers.production_send_web.tls.certresolver=letsencryptresolver"
- "traefik.http.routers.production_send_web.service=production_send_web"
- "traefik.docker.network=traefik"
networks:
- traefik
- default
redis:
image: redis:alpine
networks:
- default
redis:
image: redis
deploy:
replicas: 1
labels:
- traefik.enable=false
volumes:
- /mnt/tank/persist/nixc.us/send/staging/db:/data
networks:
- default
entrypoint: redis-server