Skip to content

500 internal server error when using docker setup #258

@NxckyBear

Description

@NxckyBear

Hi, im quite new to this, im trying to install Davis as a docker container and when doing that with mysql or postgresql using the docker composes in the Docker folder, I get a 500 error code when visiting the website

I use the version with no reverse proxy, as I am using caddy myself and this looks setup very well, as I can reach Davis. I just get this line: 172.22.0.4 - 17/May/2026:00:45:11 +0000 "GET /index.php" 500
/status returns a 200

my caddy file entry looks like this (im uncertain if this is relevant but I might still attach that if that may be the cause):
cal.cxteneko.com { reverse_proxy :380 }
the port in the docker compose was changed aswell to 380, since 9000 is already occupied.

I also ran the command docker exec -it davis sh -c "APP_ENV=prod bin/console doctrine:migrations:migrate --no-interaction" with the same result after it ran, the command itself seemed to work, here's the output:
`[notice] Migrating up to DoctrineMigrations\Version20260131161930
[notice] Migration DoctrineMigrations\Version20221106220412 skipped during Execution. Reason: "This migration is specific to 'postgresql'. Skipping it is fine."
[notice] Migration DoctrineMigrations\Version20221211154443 skipped during Execution. Reason: "This migration is specific to 'sqlite'. Skipping it is fine."
[notice] Migration DoctrineMigrations\Version20230209142217 skipped during Execution. Reason: "This migration is specific to 'postgresql'. Skipping it is fine."
[notice] Migration DoctrineMigrations\Version20231001214112 skipped during Execution. Reason: "This migration is specific to 'postgresql'. Skipping it is fine."
[notice] Migration DoctrineMigrations\Version20231001214113 skipped during Execution. Reason: "This migration is specific to 'sqlite'. Skipping it is fine."
[notice] finished in 1328.9ms, used 14M memory, 17 migrations executed, 53 sql queries

[OK] Successfully migrated to version: DoctrineMigrations\Version20260131161930`

please tell me if there is anything else I need to attach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions