D
Dokploy3mo ago
Tan

Preview Deployment on GitLab & Persistent Logs After VPS Reboot

Hi everyone, I’m new to Dokploy and Docker-related technologies, so I’m still learning. I have two questions regarding Dokploy:
1. Does GitLab support Preview Deployment? My repository on GitHub triggers preview deployment successfully, but on GitLab, it doesn't work. Are there any special configurations needed?
2. After rebooting my VPS, the service logs disappear. Is this expected behavior? I created the service using "Create Service" -> "Application" with the Build Type set to "Nixpacks." The application is a simple Node.js app. How can I make logs persist for future analysis?
Thanks in advance for your help!
3 Replies
Henrik
Henrik3mo ago
1. I don’t know 2. Yes, this is expected behavior. There is no way that I would recommend to keep the logs in dokploy after reboot. I would instead try to set up log collector services. Take a look at Loki + Grafana
Tan
TanOP3mo ago
I really appreciate your help! I'll start looking into Loki + Grafana today.
Henrik
Henrik3mo ago
This article could be of interest to get the logs from your containers
Grafana Labs
Docker driver client | Grafana Loki documentation
Provides instructions for how to install, upgrade, and remove the Docker driver client, used to send logs to Loki.

Did you find this page helpful?