Replies: 1 comment
-
The service variables are only for services, this is an app so they aren't generated However there will be a COOLIFY_URL or COOLIFY_FQDN added to the .env for build, you can try add one of those as a buildarg You can check by running RUN cat .env In your dockerfile |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I'm trying to deploy a docker-compose app, but my react-app built by vite must have the backend FQDN at build-time.
For now i'm passing the SERVICE_FQDN_API via a build-arg like this:
docker-compose.yaml
Dockerfile.coolify (front)
For now the VITE_APP_API_URL is always empty, but the PACKAGE_TOKEN is not empty.
The documentation is not clear, and when looking trough the source code i wasn't able to find wether the SERVICE_FQDN_* variables are available at build time or after when the docker-compose images have been built.
The environnement variables always come with the SERVICE_FQDN grayed out and blank i suppose its meant to work this way tho.
If anyone has the answer it would be hugely appreciated 😜
many thanks
Beta Was this translation helpful? Give feedback.
All reactions