Follow these steps to get everything up and running:
- Create a
.env
file in the root directory, as well as in theweb
andstrapi
folders. - Copy the contents from the
.env.example
file found in the same directories into these new.env
files.
- Open a terminal and navigate to the
strapi
directory. - Run
docker-compose up -d
to initialize Strapi. - Wait a few moments for the Strapi container to build the admin interface.
- Visit http://localhost:1337/admin in your browser.
- Create a new user to access the Strapi admin panel.
- Go to "Single Types" and add a value to the
title
attribute. - Navigate to "Settings" -> "Roles" -> "Public" -> "Home Page" and enable the
find
checkbox.
- Open a terminal and navigate to the root directory of the project.
- Run
docker-compose up -d
to start building the Docker images for the entire project. - Wait a few moments for the build process to complete.
- Open http://localhost:3000/ in your browser.
- You should see the Nuxt app displaying content from the API and Strapi.
Enjoy your full Docker setup with Nuxt 3, .NET 7 WebAPI, and Strapi! If you encounter any issues, make sure to check the Docker logs and configuration files for troubleshooting.