{"id":16912479,"url":"https://github.com/galexrt/container-staytus","last_synced_at":"2025-09-03T02:13:54.496Z","repository":{"id":46241496,"uuid":"49386386","full_name":"galexrt/container-staytus","owner":"galexrt","description":"adamcooke/staytus (https://staytus.co/) as a Container Image without the MySQL server.","archived":false,"fork":false,"pushed_at":"2022-07-18T15:56:34.000Z","size":44,"stargazers_count":20,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T11:23:12.219Z","etag":null,"topics":["container-image"],"latest_commit_sha":null,"homepage":"https://staytus.co/","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/galexrt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-10T21:31:13.000Z","updated_at":"2024-03-10T18:17:34.000Z","dependencies_parsed_at":"2022-09-13T15:32:56.175Z","dependency_job_id":null,"html_url":"https://github.com/galexrt/container-staytus","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/galexrt/container-staytus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fcontainer-staytus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fcontainer-staytus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fcontainer-staytus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fcontainer-staytus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/galexrt","download_url":"https://codeload.github.com/galexrt/container-staytus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/galexrt%2Fcontainer-staytus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273377163,"owners_count":25094530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["container-image"],"created_at":"2024-10-13T19:10:14.709Z","updated_at":"2025-09-03T02:13:54.450Z","avatar_url":"https://github.com/galexrt.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# container-staytus\n\n[adamcooke/staytus](https://github.com/adamcooke/staytus) as a Container Image without the MySQL server.\n\nImage available from:\n\n* [Quay.io](https://quay.io/repository/galexrt/staytus)\n* [GHCR.io](https://github.com/galexrt/container-staytus/pkgs/container/staytus)\n* [**DEPRECATED** Docker Hub](https://hub.docker.com/r/galexrt/staytus)\n  * Docker Hub has been deprecated as of **18.09.2021**!\n\nContainer Image Tags:\n\n* `main` - Latest build of the `main` branch.\n* `vx.y.z` - Latest build of the application (updated in-sync with the date container image tags).\n* `vx.y.z-YYYYmmdd-HHMMSS-NNN` - Latest build of the application with date of the build.\n\n## Usage\n\n### Pulling the image\n\nFrom Quay.io:\n\n```console\ndocker pull quay.io/galexrt/staytus:main\n```\nOr from GHCR.io:\n\n```console\ndocker pull ghcr.io/galexrt/staytus:main\n```\n\n### Running Staytus\n\nFor the Docker Staytus image to work, you'll need to start a MySQL server (or container).\nThe commands below creates a network, start a MariaDB and then starts the Staytus container.\n\nCreate the separate network for Staytus and database:\n\n```console\ndocker network create staytus\n```\n\nStart the MariaDB database container:\n\n```console\ndocker run \\\n    -d \\\n    --name=database \\\n    --net=staytus \\\n    -e MYSQL_ROOT_PASSWORD=my-secret-pw \\\n    -e MYSQL_DATABASE=staytus \\\n    -e MYSQL_USER=staytus \\\n    -e MYSQL_PASSWORD=staytus \\\n    mariadb:10.4.4-bionic\n```\n\nStart the Staytus container with the environment variables pointing to the created `database` container.\n\n```console\ndocker run \\\n    -d \\\n    --name=staytus \\\n    --net=staytus \\\n    -p 8787:8787 \\\n    -e 'DB_HOST=database' \\\n    -e 'DB_USER=staytus' \\\n    -e 'DB_PASSWORD=staytus' \\\n    quay.io/galexrt/staytus:main\n```\n\nAfter running the commands, open `127.0.0.1:8787`, `YOUR_IP:8787` (or the server IP when Docker is running on a server) in your browser to run the setup for your containerized Staytus instance.\n\n#### Manual configuration\n\nIf you want to manually configure Staytus, you can point a volume to `/opt/staytus/staytus/config/`  and put the `database.yaml` config in that volume yourself.\n\n```console\ndocker run \\\n[...]\n    -e 'AUTO_CONF=false' \\\n    -v /opt/docker/staytus/config:/opt/staytus/staytus/config:ro \\\n    [...]\n    quay.io/galexrt/staytus:lastest\n```\n\n### Available Env Vars\n\n#### Database Configuration\n\n\u003e **NOTE**\n\u003e\n\u003e TL;DR Create a database with `CHARSET utf8mb4` and `COLLATE utf8mb4_unicode_ci`.\n\u003e\n\u003e Database setup instructions here https://github.com/adamcooke/staytus#instructions\n\nYou can add the following variables as env vars to your Docker run command:\n\n* `AUTO_CONF` (Default: `true`) - Enable or disable the `database.yaml` configuration, based on the upcoming `DB_*` variables.\n* `DB_ADAPTER` (Default: `mysql2`)\n* `DB_POOL` (Default: `5`)\n* `DB_HOST` (Default: `database`)\n* `DB_DATABASE` (Default: `staytus`)\n* `DB_USER` (Default: `staytus`)\n* `DB_PASSWORD` (Default: empty)\n\n#### SMTP Configuration (from Staytus)\n\nYou can add the following variables as env vars to your Docker run command:\n\n* `STAYTUS_SMTP_HOSTNAME`\n* `STAYTUS_SMTP_USERNAME`\n* `STAYTUS_SMTP_PASSWORD`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalexrt%2Fcontainer-staytus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgalexrt%2Fcontainer-staytus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgalexrt%2Fcontainer-staytus/lists"}