mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Replaces the Node.js content-fetch container with the Go implementation
in both self-hosted compose files, and enables MinIO-backed original
content uploads via BLOB_STORAGE_URL.
Changes:
- self-hosting/docker-compose/docker-compose.yml
- content-fetch image: sh-content-fetch → sh-content-fetch-go
- Remove USE_FIREFOX (Go service uses Chromium, no Firefox needed)
- Add dependency on createbuckets (bucket must exist before uploads)
- self-hosting/docker-compose/self-build/docker-compose.yml
- content-fetch build: packages/content-fetch → packages/content-fetch-go
- Remove USE_FIREFOX
- Add dependency on createbuckets
- self-hosting/docker-compose/.env.example
- Remove SKIP_UPLOAD_ORIGINAL=true (uploads now work via MinIO)
- Add BLOB_STORAGE_URL pointing to the MinIO container
- Consolidate AWS_ACCESS_KEY_ID / AWS_SECRET_ACCESS_KEY entries
(were split between two comment blocks, now in one place)
- packages/content-fetch-go/Dockerfile
- Build stage: golang:1.24-alpine → golang:1.25-alpine (matches go.mod)
MinIO URL used: s3://omnivore?endpoint=http%3A%2F%2Fminio%3A9000&use_path_style=true&disable_https=true®ion=us-east-1
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
152 lines
3.4 KiB
YAML
152 lines
3.4 KiB
YAML
version: '3'
|
|
x-postgres:
|
|
&postgres-common
|
|
image: "ankane/pgvector:v0.5.1"
|
|
user: postgres
|
|
healthcheck:
|
|
test: "exit 0"
|
|
interval: 2s
|
|
timeout: 12s
|
|
retries: 3
|
|
|
|
services:
|
|
postgres:
|
|
<<: *postgres-common
|
|
container_name: "omnivore-postgres"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
env_file:
|
|
- .env
|
|
|
|
migrate:
|
|
image: "ghcr.io/omnivore-app/sh-migrate:latest"
|
|
container_name: "omnivore-migrate"
|
|
command: '/bin/sh ./packages/db/setup.sh' # Also create a demo user with email: demo@omnivore.work, password: demo_password
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
|
|
api:
|
|
image: "ghcr.io/omnivore-app/sh-backend:latest"
|
|
container_name: "omnivore-api"
|
|
ports:
|
|
- "4000:8080"
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "nc -z 0.0.0.0 8080 || exit 1"]
|
|
interval: 15s
|
|
timeout: 90s
|
|
retries: 6
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
migrate:
|
|
condition: service_completed_successfully
|
|
|
|
queue-processor:
|
|
image: "ghcr.io/omnivore-app/sh-queue-processor:latest"
|
|
container_name: "omnivore-queue-processor"
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
api:
|
|
condition: service_started
|
|
|
|
web:
|
|
image: "ghcr.io/omnivore-app/sh-web:latest"
|
|
container_name: "omnivore-web"
|
|
ports:
|
|
- "3000:8080"
|
|
env_file:
|
|
.env
|
|
depends_on:
|
|
api:
|
|
condition: service_healthy
|
|
|
|
image-proxy:
|
|
image: "ghcr.io/omnivore-app/sh-image-proxy:latest"
|
|
container_name: "omnivore-image-proxy"
|
|
ports:
|
|
- "7070:8080"
|
|
env_file:
|
|
- .env
|
|
|
|
content-fetch:
|
|
image: "ghcr.io/omnivore-app/sh-content-fetch-go:latest"
|
|
container_name: "omnivore-content-fetch"
|
|
ports:
|
|
- "9090:8080"
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
api:
|
|
condition: service_healthy
|
|
createbuckets:
|
|
condition: service_completed_successfully
|
|
|
|
redis:
|
|
image: "redis:7.2.4"
|
|
container_name: "omnivore-redis"
|
|
expose:
|
|
- 6379
|
|
ports:
|
|
- "6379:6379"
|
|
healthcheck:
|
|
test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
|
|
volumes:
|
|
- redis_data:/data
|
|
|
|
minio:
|
|
image: minio/minio
|
|
expose:
|
|
- 1010
|
|
ports:
|
|
- "1010:9000"
|
|
healthcheck:
|
|
test: [ "CMD", "mc", "ready", "local" ]
|
|
interval: 5s
|
|
timeout: 1s
|
|
environment:
|
|
- "MINIO_ACCESS_KEY=minio"
|
|
- "MINIO_SECRET_KEY=miniominio"
|
|
- "AWS_S3_ENDPOINT_URL=http://minio:1010"
|
|
command: server /data
|
|
volumes:
|
|
- minio_data:/data
|
|
|
|
createbuckets:
|
|
image: minio/mc
|
|
environment:
|
|
- MINIO_ACCESS_KEY=minio
|
|
- MINIO_SECRET_KEY=miniominio
|
|
- BUCKET_NAME=omnivore
|
|
- ENDPOINT=http://minio:9000
|
|
- AWS_S3_ENDPOINT_URL=http://minio:9000
|
|
depends_on:
|
|
- minio
|
|
entrypoint: >
|
|
/bin/bash -c "
|
|
sleep 5;
|
|
until (/usr/bin/mc alias set myminio http://minio:9000 minio miniominio) do echo '...waiting...' && sleep 1; done;
|
|
/usr/bin/mc mb myminio/omnivore;
|
|
/usr/bin/mc anonymous set public myminio/omnivore;
|
|
exit 0;
|
|
"
|
|
mail-watch-server:
|
|
image: "ghcr.io/omnivore-app/sh-local-mail-watcher:latest"
|
|
container_name: "omnivore-mail-watch-server"
|
|
ports:
|
|
- "4398:8080"
|
|
env_file:
|
|
- .env
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
volumes:
|
|
pgdata:
|
|
redis_data:
|
|
minio_data:
|
|
|