Can't access application #758
Replies: 4 comments
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
You're right, i re formatted the files. Sorry about that. |
Beta Was this translation helpful? Give feedback.
-
I don't know what you missing. You'd have to isolate the problem if it's the caddy or symfony configuration and tell us. I don't think that's the issue but, |
Beta Was this translation helpful? Give feedback.
-
Thank you for you reply. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to dockerise an existing symfony application, without success yet.
Here are the edited for my needs files :
Dockerfile
compose.yaml
Caddyfile
Exposed port 2019 here to handle heathcheck done in Dockerfile
Other files remain unchanged
The Caddy server seems up, i can access localhost:2019 that displays some configs and metrics
If i try to access http://localhost, i am redirected to https://localhost which is the wanted behavior. I accept the browser alert and access unsafe https anyway, but there it loads infinitely.
I run this docker command to launch containers :
SERVER_NAME=localhost \ APP_SECRET=ChangeMe \ CADDY_MERCURE_JWT_SECRET=ChangeThisMercureHubJWTSecretKey \ docker compose -f compose.yaml -f compose.prod.yaml up -d --wait
I must have missed something but can't figure out what... Any help will be appreciated
Beta Was this translation helpful? Give feedback.
All reactions