Sign inSign up

sqliteonlinecom/soe-mariadb

By sqliteonlinecom

•Updated over 5 years ago

MariaDB including external module "sqliteonline.com"

Image
2

1.6K

sqliteonlinecom/soe-mariadb repository overview

⁠What is soe?

Soe - external module for accessing local and remote databases from SqliteOnline.com⁠

SQL Editor, any database from any device.

This docker MariaDB⁠ including an external module "SOE" to make it much easier to run a ready set. (without creating a complex file: via docker stack deploy or docker-compose).

⁠How to use MariaDB image

link: MariaDB - Docker Official Images⁠

⁠How to use this image

docker run --name soe-mariadb --rm -d -e MYSQL_ROOT_PASSWORD=my_secret_pw -e SOE_DB_ROOT=1 -p 8081:17321 sqliteonlinecom/soe-mariadb
⁠Connecting to your database via SqliteOnline.com

You can check if the server settings are correct. http://localhost:8081/soe/test

Go to the SqliteOnline.com⁠ website and click the Owner DB button

  • Url http://localhost:8081/soe/
  • DB name mysql
  • Login root
  • Password my_secret_pw
⁠Using environment variables in soe configuration
  • soe_path path (default: soe)
  • soe_body_size limit on request length (default: 2097152)
  • soe_timeout session time limit in minutes (default: 15)
  • soe_row_limit limit the number of lines, unlimited - 0 (experimental feature) (default: 100000)
  • soe_login_allow allow access to the database, only users from the list, via "SOE" (example: user1,user2,user3)
  • soe_login_deny block users from the list to access the database via "SOE" (example: user1,user2,user3)
  • soe_db_root allow the user root to access the database through "SOE". allow - 1, deny - 0 (default: 0)
⁠Export
docker exec soe-mariadb sh -c 'exec mysqldump --all-databases -uroot -p"$MYSQL_ROOT_PASSWORD"' > /some/path/on/your/host/all-databases.sql
⁠Import
docker exec -i soe-mariadb sh -c 'exec mysql -uroot -p"$MYSQL_ROOT_PASSWORD"' < /some/path/on/your/host/all-databases.sql
⁠Where to Store Data

Create a data directory on a suitable volume on your host system, e.g. /my/own/datadir.

docker run --name soe-mariadb -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my_secret_pw -e SOE_DB_ROOT=1 -p 8081:17321 -d sqliteonlinecom/soe-mariadb

The -v /my/own/datadir:/var/lib/mysql part of the command mounts the /my/own/datadir directory from the underlying host system as /var/lib/mysql inside the container, where MySQL by default will write its data files.

⁠Using nginx configuration (from remote server)

You can check if the server settings are correct. https://youdomain/soe/test

# replace nginx_path on you path name
location /soe/ {
   gzip on;
   gzip_comp_level 9;
   gzip_types application/json;
   proxy_set_header X-Real-IP $remote_addr;
   proxy_set_header Host $host;
   proxy_pass http://127.0.0.1:8081;
   proxy_redirect off;
   proxy_buffering off;
   proxy_buffer_size 128k;
   proxy_buffers 100 128k;
   proxy_http_version 1.1;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "upgrade";
   proxy_next_upstream error timeout http_500 http_502 http_503 http_504;
   proxy_connect_timeout 5s;
   proxy_read_timeout 30s;
   proxy_send_timeout 30s;
}

⁠License

View license information⁠ for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Tag summary

Content type

Image

Digest

Size

121.6 MB

Last updated

over 5 years ago

docker pull sqliteonlinecom/soe-mariadb