# Redlib - Reddit frontend (maintained fork of Libreddit)
# Port: 9000
# Privacy-respecting Reddit frontend

services:
  redlib:
    image: quay.io/redlib/redlib:latest
    container_name: Redlib
    hostname: redlib
    mem_limit: 2g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:true
    read_only: true
    healthcheck:
      test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
      interval: 30s
      timeout: 5s
    ports:
      - 9000:8080
    restart: on-failure:5
