initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Redlib
|
||||
|
||||
Deploy Redlib privacy-focused Reddit frontend using Docker Compose.
|
||||
|
||||
## Description
|
||||
|
||||
Redlib is an alternative private front-end to Reddit, providing a clean interface without tracking.
|
||||
|
||||
## Variables
|
||||
|
||||
### Optional
|
||||
|
||||
| Variable | Default | Description |
|
||||
|----------|---------|-------------|
|
||||
| `redlib_http_port` | `8080` | Web interface port |
|
||||
| `redlib_container_version` | `latest` | Redlib Docker image tag |
|
||||
| `redlib_extra_env_vars` | `{}` | Dictionary of environment variables |
|
||||
|
||||
## Example
|
||||
|
||||
```yaml
|
||||
- role: patrickj.docker_apps.redlib
|
||||
```
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
app_name: redlib
|
||||
|
||||
# Container configuration
|
||||
redlib_container_name: "{{ app_name | default('redlib') }}"
|
||||
redlib_container_version: latest
|
||||
redlib_restart_policy: "{{ app_restart_policy }}"
|
||||
|
||||
# Network configuration
|
||||
redlib_http_port: 8080
|
||||
|
||||
# App-specific configuration
|
||||
redlib_extra_env_vars: {}
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: Patrick Jaroszewski
|
||||
description: Deploy redlib with Docker Compose
|
||||
license: MIT
|
||||
|
||||
dependencies:
|
||||
- role: patrickj.docker_apps.docker_compose_app
|
||||
vars:
|
||||
app_role_name: redlib
|
||||
app_health_check: false # Issues with redlib healthcheck
|
||||
@@ -0,0 +1,30 @@
|
||||
---
|
||||
services:
|
||||
redlib:
|
||||
image: quay.io/redlib/redlib:{{ redlib_container_version }}
|
||||
restart: {{ redlib_restart_policy }}
|
||||
container_name: {{ redlib_container_name }}
|
||||
ports:
|
||||
- "{{ redlib_http_port }}:8080"
|
||||
user: nobody
|
||||
read_only: true
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
# - seccomp=seccomp-redlib.json
|
||||
cap_drop:
|
||||
- ALL
|
||||
networks:
|
||||
- redlib
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"]
|
||||
interval: 5m
|
||||
timeout: 3s
|
||||
{% if redlib_extra_env_vars %}
|
||||
environment:
|
||||
{% for item in redlib_extra_env_vars | dict2items %}
|
||||
- {{ item.key }}="{{ item.value }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
networks:
|
||||
redlib:
|
||||
Reference in New Issue
Block a user