Windows: It is better to develop on your local machine because "hot reload" doesn't work when running the app with Docker on Windows. However, if you still want to use Docker for developing an Ionic project on Windows, you can reset the containers to see the changes in your Ionic project.
- Docker Engine / Docker Desktop
- Docker Compose
- Note: If you already have an existing Ionic app, place it at the same level as the
Dockerfile
anddocker-compose.yml
files. Then, modify the value ofapp_name
in the.env
file with the name of your app (the folder name). Make sure not to execute thedocker compose run
command. - Note: If you are creating a new Ionic app, remember to update the value of
app_name
in the.env
file with the name of your new app.
docker compose build
- Note: If you modify the
app_name
in the.env
file, make sure to changemy_app
with the name of your app
docker compose run web ionic start my_app blank --type=angular --no-interactive --no-confirmation
docker compose up -d