Skip to content

Commit c572717

Browse files
committed
fixes and pwa support and docker compose
1 parent 594664f commit c572717

2 files changed

Lines changed: 33 additions & 42 deletions

File tree

README.md

Lines changed: 32 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
A modern, self-hosted checklist and document management application built with Next.js 14, TypeScript, and Tailwind CSS. rwMarkable allows users to create, manage, and collaborate on checklists and rich text documents with a beautiful, responsive interface.
44

5+
<p align="center">
6+
<a href="https://www.buymeacoffee.com/fccview">
7+
<img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy me a coffee" width="150">
8+
</a>
9+
</p>
10+
511
## ✨ Features
612

713
### 📋 Checklist Management
@@ -95,17 +101,39 @@ A modern, self-hosted checklist and document management application built with N
95101

96102
1. **Using Docker Compose (Recommended)**
97103

104+
- Create a `docker-compose.yml` file:
105+
106+
```bash
107+
services:
108+
app:
109+
image: ghcr.io/fccview/rwmarkable:main
110+
container_name: rwmarkable
111+
user: "1001:65533"
112+
ports:
113+
- "1234:3000"
114+
volumes:
115+
- ./data:/app/data:rw # Do NOT change this volume name.
116+
restart: unless-stopped
117+
environment:
118+
- NODE_ENV=production
119+
init: true
120+
```
121+
122+
- Assign the right permissions and start the container:
123+
98124
```bash
125+
sudo chown -R 1001:65533 data/
99126
docker-compose up -d
100127
```
101128

102129
2. **Using Docker directly**
130+
- Pull the repository locally
103131
```bash
104132
docker build -t rwmarkable .
105-
docker run -p 3000:3000 -v checklist_data:/app/data rwmarkable
133+
docker run -p 1234:3000 -v data:/app/data rwmarkable
106134
```
107135

108-
The application will be available at `http://localhost:3000`
136+
The application will be available at `http://localhost:1234`
109137

110138
## 🔧 Configuration
111139

@@ -168,42 +196,6 @@ The application uses a simple file-based storage system:
168196
- **Input validation** and sanitization
169197
- **CSRF protection** through Next.js built-in security
170198

171-
## 🐳 Docker Deployment
172-
173-
The application includes optimized Docker configuration for production deployment:
174-
175-
### Production Docker Compose
176-
177-
```yaml
178-
version: "3.8"
179-
services:
180-
app:
181-
image: ghcr.io/riofriz/checklist:latest
182-
container_name: rwMarkable
183-
ports:
184-
- "3000:3000"
185-
volumes:
186-
- checklist_data:/app/data
187-
restart: unless-stopped
188-
189-
volumes:
190-
checklist_data:
191-
```
192-
193-
### Custom Docker Build
194-
195-
```bash
196-
# Build the image
197-
docker build -t rwmarkable .
198-
199-
# Run with persistent data
200-
docker run -d \
201-
--name rwmarkable \
202-
-p 3000:3000 \
203-
-v $(pwd)/data:/app/data \
204-
rwmarkable
205-
```
206-
207199
## 🤝 Contributing
208200

209201
1. **Fork the repository**
@@ -224,6 +216,8 @@ If you encounter any issues or have questions:
224216
2. **Search existing issues** on GitHub
225217
3. **Create a new issue** with detailed information about your problem
226218

219+
I don't have a lot of free time, but I'll try to keep an eye on it all.
220+
227221
## 🔄 Updates
228222

229223
To update your installation:
@@ -243,7 +237,3 @@ yarn install
243237
yarn build
244238
yarn start
245239
```
246-
247-
---
248-
249-
**rwMarkable** - Simple, powerful, and beautiful checklist and document management.

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ services:
1010
restart: unless-stopped
1111
environment:
1212
- NODE_ENV=production
13+
init: true

0 commit comments

Comments
 (0)