Files
docker-compose_files/copyparty/docker-compose.yml
T
2026-09-22 18:27:30 -06:00

32 lines
991 B
YAML

---
services:
copyparty:
image: copyparty/ac:latest
container_name: copyparty
user: ${PUID}:${PGID}
env_file:
.env
ports:
- 3923:3923
volumes:
#- /mnt/nas2/BACKUPS/server_backup:/data:z
- ${DATA_MOUNT_LOCATION}:/data:z
- ./copyparty:/cfg:z
environment:
#LD_PRELOAD: /usr/lib/libmimalloc-secure.so.NOPE
LD_PRELOAD: /usr/lib/libmimalloc-secure.so.2
# enable mimalloc by replacing "NOPE" with "2" for a nice speed-boost (will use twice as much ram)
PYTHONUNBUFFERED: 1
# ensures log-messages are not delayed (but can reduce speed a tiny bit)
stop_grace_period: 15s # thumbnailer is allowed to continue finishing up for 10s after the shutdown signal
healthcheck:
# hide it from logs with "/._" so it matches the default --lf-url filter
test: ["CMD-SHELL", "wget --spider -q 127.0.0.1:3923/?reset=/._"]
interval: 1m
timeout: 2s
retries: 5
start_period: 15s