chore: update docker info d6ff3457
Steve · 2026-04-25 12:00 5 file(s) · +20 −4
apps/backup/backup.sh +2 −2
5 5
BUCKET="${R2_BUCKET:-andromeda-backups}"
6 6
RETENTION_DAYS="${RETENTION_DAYS:-30}"
7 7
8 -
DBS="jotts:/data/jotts/jotts.sqlite sipp:/data/sipp/sipp.sqlite cellar:/data/cellar/cellar.sqlite posts:/data/posts/posts.sqlite feeds:/data/feeds/feeds.sqlite"
8 +
DBS="jotts:/data/jotts/jotts.sqlite sipp:/data/sipp/sipp.sqlite cellar:/data/cellar/cellar.sqlite posts:/data/posts/posts.sqlite feeds:/data/feeds/feeds.sqlite library:/data/library/library.sqlite"
9 9
10 10
for entry in $DBS; do
11 11
  name="${entry%%:*}"
28 28
29 29
# Prune old backups
30 30
cutoff=$(date -u -d "-${RETENTION_DAYS} days" +%Y-%m-%d 2>/dev/null || date -u -v-${RETENTION_DAYS}d +%Y-%m-%d)
31 -
for name in jotts sipp cellar posts feeds; do
31 +
for name in jotts sipp cellar posts feeds library; do
32 32
  aws s3 ls "s3://${BUCKET}/${name}/" --endpoint-url "${R2_ENDPOINT}" 2>/dev/null | while read -r line; do
33 33
    filedate=$(echo "$line" | awk '{print $1}')
34 34
    filename=$(echo "$line" | awk '{print $4}')
apps/backup/docker-compose.yml +4 −0
7 7
      - cellar-data:/data/cellar:ro
8 8
      - posts-data:/data/posts:ro
9 9
      - feeds-data:/data/feeds:ro
10 +
      - library-data:/data/library:ro
10 11
    env_file: .env
11 12
    restart: unless-stopped
12 13
26 27
  feeds-data:
27 28
    external: true
28 29
    name: ${FEEDS_VOLUME:-feeds_feeds-data}
30 +
  library-data:
31 +
    external: true
32 +
    name: ${LIBRARY_VOLUME:-library_library-data}
apps/library/.env.example +1 −1
3 3
BASE_URL=http://localhost:3000
4 4
HOST=127.0.0.1
5 5
PORT=3000
6 -
LIBRARY_DB_PATH=/data/library.sqlite
6 +
LIBRARY_DB_PATH=library.sqlite
7 7
GOOGLE_BOOKS_API_KEY=
apps/library/Dockerfile +0 −1
1 -
# Build from repo root: docker build -t library -f apps/library/Dockerfile .
2 1
FROM lukemathwalker/cargo-chef:latest-rust-1-slim-bookworm AS chef
3 2
WORKDIR /app
4 3
docker-compose.yml +13 −0
68 68
      - posts_data:/data
69 69
    env_file: apps/posts/.env
70 70
71 +
  library:
72 +
    image: ghcr.io/stevedylandev/andromeda/library:latest
73 +
    restart: unless-stopped
74 +
    ports:
75 +
      - "4646:3000"
76 +
    volumes:
77 +
      - library_data:/data
78 +
    env_file: apps/library/.env
79 +
71 80
  backup:
72 81
    image: ghcr.io/stevedylandev/andromeda/backup:latest
73 82
    volumes:
74 83
      - jotts_data:/data/jotts:ro
75 84
      - sipp_data:/data/sipp:ro
76 85
      - cellar_data:/data/cellar:ro
86 +
      - library_data:/data/library:ro
77 87
    env_file: apps/backup/.env
78 88
    restart: unless-stopped
79 89
96 106
  posts_data:
97 107
    external: true
98 108
    name: posts_posts-data
109 +
  library_data:
110 +
    external: true
111 +
    name: library_library-data