This commit is contained in:
Lorenzo Carbonell 2023-04-09 21:00:37 +02:00
parent c32a7dcae1
commit d921ec6726
12 changed files with 133 additions and 0 deletions

27
dim/README.md Normal file
View File

@ -0,0 +1,27 @@
# Instalación
[Flame](https://github.com/pawelmalak/flame) es un software para crear una "página de inicio" con enlaces a nuestras aplicaciones web y sitios web favoritos.
```
git clone https://github.com/atareao/self-hosted.git
cd self-hosted/flame
cp sample.env .env
sed -i "s/flame.tuservidor.es/el_fqdn_que_quieras/g" .env
mkdir data
```
Además recuerda cambiar la contraseña.
A la hora de levantar el servicio dependerá del proxy inverso que hayas seleccionado. Si has elegido Caddy, simplemente,
```
docker-compose -f docker-compose.yml -f docker-compose.caddy.yml up -d
docker-compose logs -f
```
Mientras que si has elegido Traefik,
```
docker-compose -f docker-compose.yml -f docker-compose.traefik.yml up -d
docker-compose logs -f
```

42
dim/config/config.toml Normal file
View File

@ -0,0 +1,42 @@
enable_ssl = false
port = 8000
cache_dir = '/tmp/streaming_cache'
metadata_dir = '/opt/dim/config/metadata'
quiet_boot = false
disable_auth = false
verbose = false
secret_key = [
37,
173,
198,
82,
141,
226,
98,
249,
225,
99,
83,
100,
206,
32,
189,
139,
75,
182,
166,
150,
140,
245,
196,
191,
102,
118,
223,
11,
157,
182,
251,
107,
]
enable_hwaccel = true

BIN
dim/config/dim.db Normal file

Binary file not shown.

BIN
dim/config/dim.db-shm Normal file

Binary file not shown.

BIN
dim/config/dim.db-wal Normal file

Binary file not shown.

View File

@ -0,0 +1,13 @@
version: '3.7'
services:
dim:
networks:
- proxy
labels:
- caddy="${FQDN}"
- caddy.reverse_proxy="{{upstreams 8000}}"
networks:
proxy:
external: true

View File

@ -0,0 +1,6 @@
version: '3.7'
services:
dim:
ports:
- "8000:8000"

View File

@ -0,0 +1,21 @@
version: '3-7'
services:
dim:
networks:
- proxy
labels:
- traefik.enable=true
- traefik.http.services.dim.loadbalancer.server.port=8000
- traefik.http.routers.dim.entrypoints=web
- traefik.http.routers.dim.rule=Host(`${FQDN}`)
- traefik.http.middlewares.dim-https-redirect.redirectscheme.scheme=websecure
- traefik.http.routers.dim.middlewares=dim-https-redirect
- traefik.http.routers.dim-secure.entrypoints=websecure
- traefik.http.routers.dim-secure.rule=Host(`${FQDN}`)
- traefik.http.routers.dim-secure.tls=true
- traefik.http.routers.dim-secure.tls.certresolver=letsencrypt
networks:
proxy:
external: true

17
dim/docker-compose.yml Normal file
View File

@ -0,0 +1,17 @@
version: '3.7'
services:
dim:
image: ghcr.io/dusk-labs/dim:dev
container_name: dim
init: true
restart: unless-stopped
volumes:
- ./config:/opt/dim/config
- media:/media
# Add more folders like so:
# - /<host_media_path>:/media2
volumes:
config: {}
media: {}

2
dim/sample.env Normal file
View File

@ -0,0 +1,2 @@
FQDN=dim.tuservidor.es

View File

@ -0,0 +1 @@
_docker_hide_legacy_commands=''

View File

@ -0,0 +1,4 @@
_docker_subcommands=( ${(Q)"${(z)$(<<\EO:_docker_subcommands
'run:Create and run a new container from an image' 'exec:Execute a command in a running container' 'ps:List containers' 'build:Build an image from a Dockerfile' 'pull:Download an image from a registry' 'push:Upload an image to a registry' 'images:List images' 'login:Log in to a registry' 'logout:Log out from a registry' 'search:Search Docker Hub for images' 'version:Show the Docker version information' 'info:Display system-wide information' 'builder:Manage builds' 'buildx:Docker Buildx (Docker Inc., 0.10.4)' 'compose:Docker Compose (Docker Inc., 2.17.2)' 'container:Manage containers' 'context:Manage contexts' 'image:Manage images' 'manifest:Manage Docker image manifests and manifest lists' 'network:Manage networks' 'plugin:Manage plugins' 'system:Manage Docker' 'trust:Manage trust on Docker images' 'volume:Manage volumes' 'swarm:Manage Swarm' 'attach:Attach local standard input, output, and error streams to a running container' 'commit:Create a new image from a container'\''s changes' 'cp:Copy files/folders between a container and the local filesystem' 'create:Create a new container' 'diff:Inspect changes to files or directories on a container'\''s filesystem' 'events:Get real time events from the server' 'export:Export a container'\''s filesystem as a tar archive' 'history:Show the history of an image' 'import:Import the contents from a tarball to create a filesystem image' 'inspect:Return low-level information on Docker objects' 'kill:Kill one or more running containers' 'load:Load an image from a tar archive or STDIN' 'logs:Fetch the logs of a container' 'pause:Pause all processes within one or more containers' 'port:List port mappings or a specific mapping for the container' 'rename:Rename a container' 'restart:Restart one or more containers' 'rm:Remove one or more containers' 'rmi:Remove one or more images' 'save:Save one or more images to a tar archive (streamed to STDOUT by default)' 'start:Start one or more stopped containers' 'stats:Display a live stream of container(s) resource usage statistics' 'stop:Stop one or more running containers' 'tag:Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE' 'top:Display the running processes of a container' 'unpause:Unpause all processes within one or more containers' 'update:Update configuration of one or more containers' 'wait:Block until one or more containers stop, then print their exit codes' '--config:string Location of client config files (default' '"/home/lorenzo/.docker")' '-c,:--context string Name of the context to use to connect to the' 'daemon:(overrides DOCKER_HOST env var and' 'default:context set with "docker context use")' '-D,:--debug Enable debug mode' '-H,:--host list Daemon socket(s) to connect to' '-l,:--log-level string Set the logging level ("debug", "info",' '"warn",:"error", "fatal") (default "info")' '--tls:Use TLS; implied by --tlsverify' '--tlscacert:string Trust certs signed only by this CA (default' '"/home/lorenzo/.docker/ca.pem")' '--tlscert:string Path to TLS certificate file (default' '"/home/lorenzo/.docker/cert.pem")' '--tlskey:string Path to TLS key file (default' '"/home/lorenzo/.docker/key.pem")' '--tlsverify:Use TLS and verify the remote' '-v,:--version Print version information and quit' 'daemon:Enable daemon mode' 'help:Show help for a command'
EO:_docker_subcommands
)}"} )