Relative Content

Tag Archive for dockerdocker-composedockerfilevuejs3vite

Docker compose env variables not working in Vue3 app

I built a QR Code generator and I want to dockerize it. The frontend of the app I built it with Vuetify, so it uses Vite and Vue3. Inside the frontend I have a .env file with the api url and the port the app should start on. The problem that I’m having is that when I pass the env variables through docker compose the frontend service doesn’t use the values from docker-compose but it uses the values from it’s own .env file.