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

REQUEST: SurrealDB | The ultimate multi-model database #9

Open
jprando opened this issue Mar 1, 2024 · 2 comments
Open

REQUEST: SurrealDB | The ultimate multi-model database #9

jprando opened this issue Mar 1, 2024 · 2 comments

Comments

@jprando
Copy link

jprando commented Mar 1, 2024

site: https://surrealdb.com/

SurrealDB offers a dynamic and adaptable platform for business. With an integrated suite of cutting-edge database solutions, tools, and services, SurrealDB empowers your workforce to discover innovative answers using products meticulously crafted to meet their requirements.

@jprando
Copy link
Author

jprando commented Mar 1, 2024

I tried to deploy easypanel + surrealdb docker image and I couldn't
only black screen and no logs

@jprando
Copy link
Author

jprando commented Mar 2, 2024

I tried again and managed to get SurrealDB to work on Easypanel, as a stopgap.

the step by step:

  • new service
    • app type
  • source
    • docker image
    • ubuntu (alpine dont working)
  • environment
    • SURREAL_AUTH=true
    • SURREAL_USER=admin
    • SURREAL_PASS=admin
    • SURREAL_PATH=file:///var/surreal/data
    • SURREAL_CAPS_ALLOW_ALL=true
  • domains
    • port 8000
  • storage
    • add volume mount
    • name: data
    • path: /var/surreal/data
  • advanced
    • I put the script below, in a single line, as a value in the start field
echo 'starting, wait!'; apt update --yes > /dev/null 2>&1; apt install --yes curl > /dev/null 2>&1; curl -sSf https://install.surrealdb.com | sh > /dev/null; rm -rf /var/surreal/data/LOCK; /usr/local/bin/surreal start

what does the above script do

# informs you that the container was started successfully and will display the SurrealDB execution log, just wait!
echo 'starting, wait!'

# update the apt db, to successfully install curl cli
# omitting messages in the console (log)
apt update --yes > /dev/null 2>&1

# install the curl cli
# omitting messages in the console (log)
apt install --yes curl > /dev/null 2>&1

# SurrealDB installation
# omitting messages in the console (log)
curl -sSf https://install.surrealdb.com | sh > /dev/null

# remove LOCK from SurrealDB, if the container has closed abruptly, so as not to disturb or prevent the execution of SurrealDB in the next command
rm -rf /var/surreal/data/LOCK;

# start SurrealDB
/usr/local/bin/surreal start

I hope this information can help other people to use SurrealDB in Easypanel or to create a native Easypanel option to be used by end users

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

No branches or pull requests

1 participant