Git Product home page Git Product logo

docker-hashtopolis-server's Introduction

Hastopolis Server Docker image

Easy to launch and highly configurable hashtopolis server on a Docker.

RUN:

  • docker run --name mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.7
  • docker run -e H8_USER="your-admin" -e H8_PASS="your-password" -e H8_EMAIL="[email protected]" --link mysql:mysql -d -p 80:80 kpeiruza/hashtopolis

This is compatible with reading Docker Mysql environment variables, so you can even launch the service with a random username and password.

  • docker run --name mydb -e MYSQL_ROOT_PASSWORD=PleaseChangeMe -d mysql:5.7
  • docker run --link mydb:mysql -d -p 80:80 kpeiruza/hashtopolis

Or simply use the docker-compose.yaml: docker-compose up -d

The compose deals with persistence on all levels: database, config, dictionaries ... If something isn't persisting, please, feel free to open an issue.

If you find problems using latest version of this Docker, please run "kpeiruza/hashtopolis:stable", which is based on php5 and Debian:9 and has been working for ages. This newer "latest" version is using PHP 7.2 on Ubuntu 18.04.

Supported environment configuration variables:

  • MYSQL_HOST, defaults to mysql
  • MYSQL_PORT, defaults 3306 <-- not working, fixed to 3306
  • MYSQL_DB, defaults to Hashtopolis
  • MYSQL_ROOT_PASSWORD
  • MYSQL_USER, you don't need it if you have the root password
  • MYSQL_PASSWORD, cannot be unset if set MYSQL_USER.
  • H8_USER, username for Hastopolis administrator account to be created on first run. <Defaults to a 256 char random string!!!>
  • H8_PASS, password for Hashtopolis, <Defaults to a 256 char random string!!!>
  • H8_EMAIL
  • PHP_MAIL_HOST, smtp server, defaults to php.ini
  • PHP_MAIL_PORT, smtp port, defaults to php.ini
  • __PHP_MAIL__FROM, defaults to php.ini

Remember to map mysql's /var/lib/mysql for usage in production. Hashtopolis server's upload folders should be mapped as well.

  • docker run --name mysql -v ./mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:5.7
  • docker run -v ./inc:/var/www/html/inc -v ./import:/var/www/html/import -v ./files:/var/www/html/files -e MYSQL_ROOT_PASSWORD=my-secret-pw -e H8_USER="admin" -e H8_PASS="admin" -e H8_EMAIL="[email protected]" --link mysql:mysql -d -p 80:80 kpeiruza/hashtopolis

Please provide feedback about any trouble encountered as well as your success deploying a farm of thousands of nodes :-)

Enjoy it!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.