feat: add ByteStash service for code snippet management
- Add ByteStash Docker service configuration and deployment - Configure subdomain routing through Caddy - Add DNS record for ByteStash subdomain - Update development service category to include ByteStash 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
37
roles/docker/templates/bytestash-compose.yml.j2
Normal file
37
roles/docker/templates/bytestash-compose.yml.j2
Normal file
@ -0,0 +1,37 @@
|
||||
services:
|
||||
bytestash:
|
||||
image: ghcr.io/jordan-dalby/bytestash:latest
|
||||
container_name: bytestash
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- bytestash_data:/data/snippets
|
||||
environment:
|
||||
JWT_SECRET: "{{ vault_bytestash.jwt_secret }}"
|
||||
TOKEN_EXPIRY: "24h"
|
||||
ALLOW_NEW_ACCOUNTS: "true"
|
||||
DEBUG: "false"
|
||||
DISABLE_ACCOUNTS: "false"
|
||||
DISABLE_INTERNAL_ACCOUNTS: "false"
|
||||
OIDC_ENABLED: "true"
|
||||
OIDC_DISPLAY_NAME: "Login with Authentik"
|
||||
OIDC_ISSUER_URL: "https://{{ subdomains.auth }}/application/o/bytestash/"
|
||||
OIDC_CLIENT_ID: "{{ vault_bytestash.oidc_client_id }}"
|
||||
OIDC_CLIENT_SECRET: "{{ vault_bytestash.oidc_client_secret }}"
|
||||
OIDC_SCOPES: "openid profile email"
|
||||
extra_hosts:
|
||||
- "{{ subdomains.auth }}:{{ docker.hairpin_ip }}"
|
||||
labels:
|
||||
glance.name: ByteStash
|
||||
glance.icon: si:code
|
||||
glance.url: https://{{ subdomains.bytestash }}/
|
||||
glance.description: Code snippet manager
|
||||
glance.id: bytestash
|
||||
|
||||
volumes:
|
||||
bytestash_data:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
default:
|
||||
external: true
|
||||
name: {{ docker.network_name }}
|
@ -7,6 +7,7 @@ services:
|
||||
glance.icon: si:vscodium
|
||||
glance.url: https://{{ subdomains.code }}/
|
||||
glance.description: Code Server
|
||||
mag37.dockcheck.update: true
|
||||
container_name: codeserver
|
||||
volumes:
|
||||
- home:/home
|
||||
|
Reference in New Issue
Block a user