You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* created multistage Dockerfile with docker-compose.yaml for production and development, added steps on how to run it into README.md
* feat: add Docker Hub publishing workflow and improve build
- Add GitHub Actions workflow for automated Docker Hub publishing
- Increase Node.js heap size to fix build memory issues
- Update docker-compose.yaml to use published image
- Support multi-platform builds (linux/amd64, linux/arm64)
* docs: update README with Docker Hub integration and badges
* perf: optimize .dockerignore for smaller build context
- Add comprehensive .dockerignore rules to exclude unnecessary files
- Reduce build context from ~5.59MB to ~534KB (90% reduction)
- Exclude Git, documentation, test files, and mobile SDKs from Docker image
- Improve build performance and security by filtering sensitive files
- Maintain required files like package.json and pnpm-lock.yaml for builds
* created multistage Dockerfile with docker-compose.yaml for production and development, added steps on how to run it into README.md
* feat: add Docker Hub publishing workflow and improve build
- Add GitHub Actions workflow for automated Docker Hub publishing
- Increase Node.js heap size to fix build memory issues
- Update docker-compose.yaml to use published image
- Support multi-platform builds (linux/amd64, linux/arm64)
* perf: optimize .dockerignore for smaller build context
- Add comprehensive .dockerignore rules to exclude unnecessary files
- Reduce build context from ~5.59MB to ~534KB (90% reduction)
- Exclude Git, documentation, test files, and mobile SDKs from Docker image
- Improve build performance and security by filtering sensitive files
- Maintain required files like package.json and pnpm-lock.yaml for builds
* Remove the migration container.
---------
Co-authored-by: productdevbook <hi@productdevbook.com>
pnpm dev --host # Allows access from mobile devices on same network
181
182
```
183
+
184
+
#### Docker
185
+
If you prefer Docker, you can run NitroPing in a containerized environment. Make sure to set up the `.env` file with the necessary secrets and database connection details.
186
+
187
+
If running Docker compose for the first time, migration is needed. Run the docker compose with `migrate` profile to set up the database schema.
188
+
189
+
```bash
190
+
docker compose up --profile migrate --profile dev -d
191
+
```
192
+
For subsequent runs, you can use the `dev` profile to start the application without migrating again.
193
+
194
+
```bash
195
+
docker compose up --profile dev -d
196
+
```
197
+
For production deployments, you can use the `prod` profile to run the application in production mode.
0 commit comments