26 lines
		
	
	
		
			792 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			792 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| version: '3'
 | |
| services:
 | |
| 
 | |
|   copyparty:
 | |
|     image: copyparty/ac:latest
 | |
|     container_name: copyparty
 | |
|     user: "1000:1000"
 | |
|     ports:
 | |
|       - 3923:3923
 | |
|     volumes:
 | |
|       - ./:/cfg:z
 | |
|       - /path/to/your/fileshare/top/folder:/w:z
 | |
| 
 | |
|     # enabling mimalloc by replacing "NOPE" with "2" will make some stuff twice as fast, but everything will use twice as much ram:
 | |
|     environment:
 | |
|       LD_PRELOAD: /usr/lib/libmimalloc-secure.so.NOPE
 | |
| 
 | |
|     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
 | 
