symfony-docker icon indicating copy to clipboard operation
symfony-docker copied to clipboard

Unable to boot app in production mode

Open Wordlesschunk opened this issue 1 year ago • 2 comments

Hey guys im trying to run my app in production mode (works fine in dev mode)

When running: docker compose -f compose.yaml -f compose.prod.yaml up -d --wait

I get: image

With the container restarting constantly

any ideas?

Wordlesschunk avatar Apr 28 '24 19:04 Wordlesschunk

Hello @Wordlesschunk!

Show your Dockerfile, compose.yaml, compose.override.yaml and compose.prod.yaml files.

7-zete-7 avatar Apr 29 '24 08:04 7-zete-7

Hi,

If you haven't touched the original template, this shouldn't happen with this instruction: https://github.com/dunglas/symfony-docker/blob/bfdd75e73ffcdce57f0f9f883029b57629549195/Dockerfile#L79

Also, docker can have a cache layer, make sure you have the right build for each deployment or rebuild your project with --no-cache option to avoid cache issue.

maxhelias avatar Apr 29 '24 09:04 maxhelias