Category : strapi

I am currently struggling with getting a NextJS-Application in combination with a Strapi-Application into Docker. My project is build up like that: /projekt /strapi … Dockerfile /nextjs … Dockerfile docker-compose.yml End – at least I think that I’m right with this – I want my docker-composed nextjs-App to build after the strapi-App is running and ..

Read more

I am using the jwilder/ngnix proxy on my server to easily deploy web application via docker. For my latest project I wanted to try to build a nextjs application with a strapi backend. Both my frontend and backend have their own domains. The frontend is reachable under mydomain.com and strapi is running under api.mydomain.com. Everything ..

Read more

At https://strapi.io/documentation/developer-docs/latest/setup-deployment-guides/configurations.html, there is a config parameter ‘url’ to set the public URL of the server. Is there a way to pass a value for that ‘url’ parameter when running Strapi in a Docker container? Maybe via the environment variables in the docker-compose.yml? version: ‘3’ services: strapi: image: strapi/strapi environment: DATABASE_CLIENT: mysql DATABASE_HOST: mysql DATABASE_PORT: ..

Read more

I tried to dockerize strapi’s next.js corporate starter app. I used production optimized next.js Dockerfile from next.js offcial docs (along with strapi Dockerfile). Running docker-compose build (yml) resulted in strapi image being built and in next.js image build failure (as it was trying to access initial pages data from not-yet-existing strapi container): FetchError: request to ..

Read more

I am dockerizing a strapi application with mongodb atlas hosted database. The image is working fine when I am hardcoding the database credentials inside config/database.js file. But I want to get those credentials from .env file. According to strapi doc I can get those variable in database.js file without using the dotenv package https://strapi.io/documentation/developer-docs/latest/setup-deployment-guides/configurations.html#environment-variables But ..

Read more