Open CyberSardinha opened 5 days ago
I've got the same issue.
So the issue is that the default docker compose doesn't work out of the box, you cant connect to pocketbase if you don't share a network amongst its services and properly name them, please update the documentation, here is my solution:
services:
scriberr:
container_name: scriberr
image: ghcr.io/rishikanthc/scriberr:0.3.0
# build:
# context: .
# dockerfile: Dockerfile
depends_on:
redis:
condition: service_started
pocketbase:
condition: service_started
ports:
- "3000:3000" # Scriberr UI
- "9243:9243" # Optionally expose JobQueue UI
#- "8080:8080" # Optionally expose Database Management UI
environment:
- OPENAI_API_KEY=
- OPENAI_ENDPOINT=
- OPENAI_MODEL=
- OPENAI_ROLE=user
- POCKETBASE_ADMIN_EMAIL=admin@example.com
- POCKETBASE_ADMIN_PASSWORD=1234567890
- POCKETBASE_URL=http://pocketbase:8080
- REDIS_HOST=redis
- REDIS_PORT=6379
- SCRIBO_FILES=/scriberr
- DEV_MODE=false
- NVIDIA=false # set to true if you have one
- CONCURRENCY=1 # Adjut cautiously according to hardware limits
volumes:
- ./scriberr/pb_data:/app/db
- ./scriberr:/scriberr
- ./scriberr/models:/models
networks:
- scriberr
redis:
container_name: redis
image: redis:7-alpine
volumes:
- ./.dockerdata/redis:/data
networks:
- scriberr
pocketbase:
image: ghcr.io/rishikanthc/pocketbase:22.22
container_name: pocketbase
environment:
- POCKETBASE_ADMIN_EMAIL=admin@example.com # Replace with your admin email
- POCKETBASE_ADMIN_PASSWORD=1234567890 # Replace with your admin password
ports:
- "8080:8080" # Expose PocketBase on port 8080
volumes:
- ./pb_data:/pb/pb_data # Mount the PocketBase data directory for persistence
restart: unless-stopped # Always restart unless explicitly stopped
networks:
- scriberr
networks:
scriberr:
external: false
tip, keep the docker compose as minimal as possible i.e. optional fields shouldn't be mentioned other than in the following documentation.
I have tried to install the 0.3.0 version and I get this error the first time it runs. I had the 0.2.1 before installed and it did work.
Any ideas what the problem is? I've checked all the password and changed them again and they are correct.
Thanks