Skroo🦄 is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.

If I'm using docker and make a change to .env.production, do I need to rebuild and precompile?

@skroo i'm guessing, but it sounds like you're talking about an env_file being referenced from a docker-compose.yml (ie. docs.docker.com/compose/compos)? if so, you wouldn't need to rebuild the images, just restart the application.

what i can't manage to find, though, is whether docker compose restart will pick those changes up, or if you have to do a down and then an up.

Skroo🦄 @skroo

@rascalking Thanks I'm trying to change email to SMTP localhost but the changes don't seem to be picking up.

· Web · 0 · 0

@skroo this SO post suggests all you need to do is "docker-compose up" again (with an optional "-d" if you're running it detached), and it will take care of recreating and restarting any containers that consume that env file.