add Redlib Reddit frontend service with security hardening
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4fb991ac52
commit
798d35be16
24
roles/docker/templates/redlib-compose.yml.j2
Normal file
24
roles/docker/templates/redlib-compose.yml.j2
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
services:
|
||||||
|
redlib:
|
||||||
|
image: quay.io/redlib/redlib:latest
|
||||||
|
restart: always
|
||||||
|
container_name: "redlib"
|
||||||
|
user: nobody
|
||||||
|
read_only: true
|
||||||
|
security_opt:
|
||||||
|
- no-new-privileges:true
|
||||||
|
# - seccomp=seccomp-redlib.json
|
||||||
|
cap_drop:
|
||||||
|
- ALL
|
||||||
|
env_file: .env
|
||||||
|
networks:
|
||||||
|
- redlib
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
|
||||||
|
interval: 5m
|
||||||
|
timeout: 3s
|
||||||
|
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
external: true
|
||||||
|
name: lava
|
Loading…
x
Reference in New Issue
Block a user