productiveops / dokemon

Docker Container Management GUI
https://dokemon.dev
MIT License
689 stars 25 forks source link

Are there any plans to support mysql or postgresql data? #18

Open aaro-n opened 10 months ago

aaro-n commented 10 months ago

Dokemon should use the sqlite database. Are there any plans to support mysql or postgresql database? If external databases are supported, I can use the data provided by the cloud service provider to view services. And how does dokemon handle the relative path of the docker-compose volume? I have tested that dokemon must be an absolute path, relative paths are not acceptable, example

version: "3.8"
services:
  cloudreve:
    container_name: cloudreve
    image: cloudreve/cloudreve:latest
    restart: unless-stopped
    ports:
      - "80:5212"
    volumes:
      - /home/www/cloudreve/uploads:/cloudreve/uploads
      - /home/www/cloudreve/conf.ini:/cloudreve/conf.ini
      - /home/www/cloudreve/cloudreve.db:/cloudreve/cloudreve.db
      - /home/www/cloudreve/avatar:/cloudreve/avatar

This can find the corresponding volume

version: "3.8"
services:
  cloudreve:
    container_name: cloudreve
    image: cloudreve/cloudreve:latest
    restart: unless-stopped
    ports:
      - "80:5212"
    volumes:
      - ./cloudreve/uploads:/cloudreve/uploads
      - ./cloudreve/conf.ini:/cloudreve/conf.ini
      - ./cloudreve/cloudreve.db:/cloudreve/cloudreve.db
      - ./cloudreve/avatar:/cloudreve/avatar

The corresponding folder cannot be found

salilponde commented 10 months ago
  1. MySQL (and other databases) will be supported in future versions. But this is a few months away.
  2. Currently only Docker Volumes are officially supported. Bind mounts (both absolute/relative paths) are not officially supported. You might be able to use absolute paths in bind mounts, however, you will have to add a bind mount to the Dokemon container (Server/Agent) too for that path. Otherwise your data will be stored in the Dokemon containers and will be LOST if you restart the container. It is likely that people will misconfigure this and end up losing their data, so I do not want to support this officially at the moment.
aaro-n commented 10 months ago

Thanks for the reply. Will dokemon add a scheduled container running function in the future? I use certbot to apply for an https certificate. Certbot does not need to be running all the time. It only needs to be run when the certificate is about to expire.