Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (33 loc) · 1.49 KB
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (33 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Funscript Player – your settings live in .env (copy .env.example once). This file rarely needs changes.
# Update: docker compose pull && docker compose up -d · build it yourself: docker compose up -d --build
name: funscript-player
services:
funscript-player:
image: ghcr.io/scripthost/funscript-player:${PLAYER_VERSION:-latest}
build: .
container_name: Funscript-Player
restart: unless-stopped
env_file:
- path: .env
required: false
ports:
- "${PLAYER_BIND:-0.0.0.0}:${PLAYER_PORT:-8080}:8080"
volumes:
- funscript-data:/app/data # everything the player saves – back up this volume
- ${MEDIA:-./media}:/media:ro # video folders: every subfolder becomes a source
# Extra scripts next to Stash videos (clip.soft.funscript) – remove the "#" and set MEDIA_STASH in .env:
# - ${MEDIA_STASH}:/media/Stash:ro
# Intel graphics (Quick Sync) for a faster HQ stream – only if the host HAS Intel graphics:
# remove the "#" in front of both lines and set RENDER_GID in .env (getent group render).
# devices: [/dev/dri:/dev/dri]
# group_add: ["${RENDER_GID:-992}"]
# Hardening: never root, read-only, no Linux capabilities, memory cap (protects Stash and other containers)
user: "${PUID:-1000}:${PGID:-1000}"
read_only: true
tmpfs: [/tmp]
cap_drop: [ALL]
security_opt: [no-new-privileges:true]
mem_limit: ${PLAYER_MEM:-2g}
volumes:
funscript-data:
name: funscript-data