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: reading config from file: open /etc/caddy/Caddyfile.dev: no such file or directory #919

Closed
Chris53897 opened this issue Jun 11, 2024 · 2 comments

Comments

@Chris53897
Copy link

I just updated the docker images and now i got the error. Mac M1 Silicon
The last working images was around 14 days old.

Error: reading config from file: open /etc/caddy/Caddyfile.dev: no such file or directory

@sayou
Copy link

sayou commented Jun 11, 2024

I also faced the same problem and I don't know what happened
Which made me change the code to the following

mercure:
        image: dunglas/mercure
        restart: unless-stopped
        ports:
            - 8082:8082
        networks:
            - dev
        environment:
            SERVER_NAME: ':8082'
            MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'
            MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'
            # Set the URL of your Symfony project (without trailing slash!) as value of the cors_origins directive
            MERCURE_EXTRA_DIRECTIVES: |
                cors_origins http://localhost
                anonymous
        # Comment the following line to disable the development mode
        #command: /usr/bin/caddy run --config /etc/caddy/Caddyfile.dev
        volumes:
            - mercure_data:/data
            - mercure_config:/config

@bogumilPiotrowski
Copy link

Faced the same issue.
It seems like in the new release, the config file has been renamed to dev.Caddyfile instead of Caddyfile.dev.

/usr/bin/caddy run --config /etc/caddy/dev.Caddyfile

Check https://mercure.rocks/docs/hub/install

@dunglas dunglas closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2024
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

4 participants