add atuin

This commit is contained in:
cori.schlegel 2024-01-13 14:20:52 +00:00 committed by cori
parent 931456ea3c
commit 51fef8166e
4 changed files with 81 additions and 0 deletions

20
apps/atuin/config.json Normal file
View File

@ -0,0 +1,20 @@
{
"$schema": "../schema.json",
"name": "Atuin",
"available": true,
"exposable": true,
"port": 8888,
"id": "atuin",
"tipi_version": 2,
"version": "latest",
"categories": [
"utilities",
"development"
],
"description": "Making your shell magical",
"short_desc": "Magical Shell History",
"author": "atuinsh",
"source": "https://github.com/atuinsh/atuin",
"form_fields": [],
"supported_architectures": ["amd64"]
}

View File

@ -0,0 +1,56 @@
version: "3.5"
services:
atuin:
restart: always
image: ghcr.io/atuinsh/atuin:latest
command: server start
volumes:
- "./config:/config"
links:
- postgresql:db
ports:
- 8888:8888
environment:
ATUIN_HOST: "0.0.0.0"
ATUIN_OPEN_REGISTRATION: "true"
ATUIN_DB_URI: postgres://atuin:really-insecure@db/atuin
networks:
- tipi_main_network
labels:
# Main
traefik.enable: true
traefik.http.middlewares.atuin-web-redirect.redirectscheme.scheme: https
traefik.http.services.atuin.loadbalancer.server.port: 8888
# Web
traefik.http.routers.atuin-insecure.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.atuin-insecure.entrypoints: web
traefik.http.routers.atuin-insecure.service: atuin
traefik.http.routers.atuin-insecure.middlewares: atuin-web-redirect
# Websecure
traefik.http.routers.atuin.rule: Host(`${APP_DOMAIN}`)
traefik.http.routers.atuin.entrypoints: websecure
traefik.http.routers.atuin.service: atuin
traefik.http.routers.atuin.tls.certresolver: myresolver
# Local domain
traefik.http.routers.atuin-local-insecure.rule: Host(`atuin.${LOCAL_DOMAIN}`)
traefik.http.routers.atuin-local-insecure.entrypoints: web
traefik.http.routers.atuin-local-insecure.service: atuin
traefik.http.routers.atuin-local-insecure.middlewares: atuin-web-redirect
# Local domain secure
traefik.http.routers.atuin-local.rule: Host(`atuin.${LOCAL_DOMAIN}`)
traefik.http.routers.atuin-local.entrypoints: websecure
traefik.http.routers.atuin-local.service: atuin
traefik.http.routers.atuin-local.tls: true
postgresql:
image: postgres:14
restart: unless-stopped
volumes: # Don't remove permanent storage for index database files!
- "./database:/var/lib/postgresql/data/"
environment:
POSTGRES_USER: atuin
POSTGRES_PASSWORD: really-insecure
POSTGRES_DB: atuin
networks:
- tipi_main_network

View File

@ -0,0 +1,5 @@
# Atuin
## Making your shell magical
Sync, search and backup shell history with Atuin

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB