Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aaro-n opened this issue Dec 28, 2023 · 2 comments
Open

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

aaro-n opened this issue Dec 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@aaro-n
Copy link

aaro-n commented Dec 28, 2023

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 salilponde added the enhancement New feature or request label Dec 28, 2023
@salilponde
Copy link
Contributor

  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
Copy link
Author

aaro-n commented Dec 29, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants