2023-11-06 10:39:27 +08:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
services:
|
|
|
|
send:
|
|
|
|
# image: "registry.gitlab.com/timvisee/send:latest"
|
|
|
|
image: ghcr.io/xavion-lux/send:latest
|
|
|
|
container_name: send
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- {{ docker_dir }}/send/uploads:/uploads
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Asia/Singapore
|
|
|
|
- NODE_ENV=development
|
|
|
|
- BASE_URL=https://s.opnxng.com
|
|
|
|
- PORT=1443
|
|
|
|
- REDIS_HOST=send-redis
|
|
|
|
- FILE_DIR=/uploads
|
|
|
|
- DOWNLOAD_COUNTS=1,2,5,10,15,25 #,50,100,1000
|
|
|
|
- DEFAULT_DOWNLOADS=10
|
|
|
|
- MAX_DOWNLOADS=25
|
|
|
|
- EXPIRE_TIMES_SECONDS=3600,86400,604800 #2592000
|
|
|
|
- DEFAULT_EXPIRE_SECONDS=604800
|
|
|
|
- MAX_EXPIRE_SECONDS=604800
|
|
|
|
ports:
|
|
|
|
- 8886:1443
|
|
|
|
networks:
|
2023-11-10 05:28:42 +08:00
|
|
|
- send
|
2023-11-06 10:39:27 +08:00
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
|
|
|
|
|
|
send-redis:
|
|
|
|
image: 'redis:alpine'
|
|
|
|
container_name: send-redis
|
|
|
|
restart: always
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges
|
|
|
|
environment:
|
|
|
|
- PUID=1000
|
|
|
|
- PGID=1000
|
|
|
|
- TZ=Asia/Singapore
|
|
|
|
volumes:
|
|
|
|
- {{ docker_dir }}/send/send-redis:/data
|
|
|
|
command: "redis-server --appendonly yes"
|
|
|
|
labels:
|
|
|
|
- "com.centurylinklabs.watchtower.enable=false"
|
|
|
|
networks:
|
2023-11-10 05:28:42 +08:00
|
|
|
- send
|
2023-11-06 10:39:27 +08:00
|
|
|
|
|
|
|
networks:
|
2023-11-10 05:28:42 +08:00
|
|
|
send:
|
|
|
|
name: send
|
2023-11-06 10:39:27 +08:00
|
|
|
|
|
|
|
# Clear expired uploads
|
|
|
|
# 0 */3 * * * find {{ docker_dir }}/send/uploads/ -name 7-\* -mmin +10130 -exec rm {} \;
|
|
|
|
# 0 */3 * * * find {{ docker_dir }}/send/uploads/ -name 1-\* -mmin +1500 -exec rm {} \;
|