Skip to content

Commit

Permalink
Dockerize the application
Browse files Browse the repository at this point in the history
  • Loading branch information
arifszn committed Feb 16, 2024
1 parent 30efe53 commit 0ec8198
Show file tree
Hide file tree
Showing 4 changed files with 691 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ As this is a Vite project, you can also host your website to Netlify, Vercel, He

- Finally, visit [`http://localhost:5173/gitprofile/`](http://localhost:5173/gitprofile/) from your browser.

> Alternatively, you can set up and run the project using Docker with **[`vail`](https://github.com/arifszn/vail)**, a powerful tool for local development of JavaScript/TypeScript Apps.
## 🎨 Customization

All the magic happens in the file `gitprofile.config.ts`. Open it and modify it according to your preference.
Expand Down
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'
services:
app:
build:
context: .
dockerfile: ./node_modules/vail/runtimes/npm/Dockerfile
args:
VAIL_NODE_VERSION: 20
command: npm run dev -- --host 0.0.0.0
ports:
- '5173:5173'
volumes:
- .:/var/www/html
networks:
- vail
networks:
vail:
driver: bridge
Loading

0 comments on commit 0ec8198

Please sign in to comment.