docs: add Coolify-specific volume configuration and deployment guide
This commit is contained in:
parent
9d73bcec50
commit
f9a80a453c
16
README.md
16
README.md
@ -56,16 +56,28 @@ This will create:
|
|||||||
|
|
||||||
### Coolify Deployment
|
### Coolify Deployment
|
||||||
|
|
||||||
To deploy on Coolify:
|
To deploy on Coolify with persistent storage:
|
||||||
|
|
||||||
1. In your Coolify dashboard, create a new service
|
1. In your Coolify dashboard, create a new service
|
||||||
2. Select "Docker Compose" as the deployment type
|
2. Select "Docker Compose" as the deployment type
|
||||||
3. Connect to your Git repository or upload the files directly
|
3. Connect to your Git repository or upload the files directly
|
||||||
4. Ensure the volume is configured correctly for data persistence
|
4. **Important**: The docker-compose.yml file has been configured with:
|
||||||
|
- A named volume: `coolify-weight-tracker-data`
|
||||||
|
- A Coolify-specific label: `coolify.volume.weight-tracker-data=/data`
|
||||||
5. Deploy the application
|
5. Deploy the application
|
||||||
|
6. Verify that the persistent volume appears in your Coolify resources
|
||||||
|
|
||||||
The application will be available at the URL provided by Coolify. All weight and meal data will be stored in the persistent volume, ensuring your data remains intact across container restarts or updates.
|
The application will be available at the URL provided by Coolify. All weight and meal data will be stored in the persistent volume, ensuring your data remains intact across container restarts or updates.
|
||||||
|
|
||||||
|
#### Verifying Data Persistence
|
||||||
|
|
||||||
|
After deployment:
|
||||||
|
1. Add some weight or meal entries in the application
|
||||||
|
2. Restart the container from the Coolify dashboard
|
||||||
|
3. Verify your data is still available after the restart
|
||||||
|
|
||||||
|
Even with persistent storage configured, it's recommended to occasionally use the "Export Data" feature in the Settings tab as an additional backup.
|
||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
### Phase 1 (Current)
|
### Phase 1 (Current)
|
||||||
|
|||||||
@ -13,6 +13,8 @@ services:
|
|||||||
- weight-tracker-data:/data
|
- weight-tracker-data:/data
|
||||||
networks:
|
networks:
|
||||||
- weight-tracker-network
|
- weight-tracker-network
|
||||||
|
labels:
|
||||||
|
- "coolify.volume.weight-tracker-data=/data"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
weight-tracker-network:
|
weight-tracker-network:
|
||||||
@ -21,3 +23,4 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
weight-tracker-data:
|
weight-tracker-data:
|
||||||
driver: local
|
driver: local
|
||||||
|
name: coolify-weight-tracker-data # Named volume for Coolify to identify
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user