Manging environment variables
In the configuration for an service, the option “Environment variables” is available. There, you can put envs, necessary for production settings. Options exist for runtime only and availability at build time.
Envs, defined in Coolify, are available to Docker / Docker Compose.
Port configuration
It is recommended to not use port mapping as commonly seen in Docker Compose 3000:3000 but rather, let Coolify manage the external port. Thus, only provide as port 3000. Then, let the domain in the Coolify configuration redirect to the given port, using app.mydomain.com:3000