my-homelab-configs/infra/privatebin/docker-compose.yml

29 lines
803 B
YAML

name: homelab-privatebin
services:
privatebin:
image: ${PRIVATEBIN_IMAGE:-docker.io/privatebin/nginx-fpm-alpine:2.1.0-alpine3.24}
container_name: ${PRIVATEBIN_CONTAINER_NAME:-homelab-privatebin}
restart: unless-stopped
read_only: true
ports:
- "${PRIVATEBIN_BIND_IP:-0.0.0.0}:${PRIVATEBIN_HTTP_PORT:-8889}:8080/tcp"
volumes:
- ./data:/srv/data
- ./conf.php:/srv/cfg/conf.php:ro
tmpfs:
- /tmp:nodev,noexec,nosuid,mode=1777
- /run:nodev,nosuid,mode=1777
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
mem_limit: 256m
pids_limit: 128
healthcheck:
test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s