Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error gallery.config.yml does not exist, when running init #161

Open
mafrosis opened this issue Nov 24, 2024 · 1 comment
Open

Error gallery.config.yml does not exist, when running init #161

mafrosis opened this issue Nov 24, 2024 · 1 comment

Comments

@mafrosis
Copy link

Hello, I spent a few mins trying your project via docker - docker-compose file here:

---
volumes:
  home-gallery: {}

services:
  api:
    image: xemle/home-gallery-api-server
    environment:
      - BACKEND=node

  gallery:
    image: xemle/home-gallery
    entrypoint: ['node', '/app/gallery.js']
    command: ['run', 'server']
    environment:
      - GALLERY_API_SERVER=http://localhost:3000
      - GALLERY_API_SERVER_CONCURRENT=5
      - GALLERY_API_SERVER_TIMEOUT=30
      - GALLERY_OPEN_BROWSER=false
      - GALLERY_WATCH_POLL_INTERVAL=300
    volumes:
      - home-gallery:/data
      - /media/photos:/photos:ro
    ports:
      - 3000:3000
    depends_on:
      - api

On start up I get:

gallery-1  | [2024-11-24 02:14:57.355]: cli.run error Error: Error: Configuration file /data/config/gallery.config.yml does not exist
gallery-1 exited with code 0

So I tried to create a config file as directed in the docs, and got the same error - which seems like a bug?

$ docker compose run --rm gallery gallery run init --source /photos
Error: Error: Configuration file /data/config/gallery.config.yml does not exist
@xemle
Copy link
Owner

xemle commented Nov 24, 2024

Hi. Thank you for your issue. Please try

$ docker compose run --rm gallery run init --source /photos

with a single gallery as the documentation describes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants