Giter Site home page Giter Site logo

docker-staytus's Introduction

docker-staytus

Docker Repository on Quay.io

Image available from:

adamcooke/staytus as a Docker image without the MySQL server.

Usage

Pulling the image

From quay.io:

docker pull quay.io/galexrt/staytus:latest

Or from Docker Hub:

docker pull galexrt/staytus:latest

Running Staytus

For the Docker Staytus image to work, you'll need to start a MySQL server (or container). The commands below start a MariaDB and the starts the Staytus container with the link to the database container.

docker run \
    -d \
    --name staytus-mariadb \
    -e MYSQL_ROOT_PASSWORD=my-secret-pw \
    -e MYSQL_DATABASE=staytus \
    -e MYSQL_USER=staytus \
    -e MYSQL_PASSWORD=staytus \
    mariadb:latest

The image runs on port 8787 With link to the MariaDB database container:

docker run \
    --link=staytus-mariadb:mysql \
    -p 8787:8787 \
    --name=staytus \
    -e 'DB_HOST=mysql' \
    -e 'DB_USER=staytus' \
    -e 'DB_PASSWORD=staytus' \
    quay.io/galexrt/staytus

After running the commands, open YOUR_IP:5000 (or the server IP) in your browser to run the setup for your containerized Staytus instance.

Available Env Vars

Database Configuration

Database setup instructions here https://github.com/adamcooke/staytus#instructions

You can add the following variables as env vars to your Docker run command:

  • DB_ADAPTER (Default: mysql2)
  • DB_POOL (Default: 5)
  • DB_HOST (Default: 127.0.0.1)
  • DB_DATABASE (Default: staytus)
  • DB_USER (Default: staytus)
  • DB_PASSWORD (Default: empty)

SMTP Configuration (from Staytus)

You can add the following variables as env vars to your Docker run command:

  • STAYTUS_SMTP_HOSTNAME
  • STAYTUS_SMTP_USERNAME
  • STAYTUS_SMTP_PASSWORD

docker-staytus's People

Contributors

galexrt avatar nweiler avatar theodorosploumis avatar

Watchers

 avatar

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.