{"id":16072461,"url":"https://github.com/ganchdev/docker-staytus","last_synced_at":"2026-02-02T00:35:05.532Z","repository":{"id":132009579,"uuid":"336897857","full_name":"ganchdev/docker-staytus","owner":"ganchdev","description":"Basic docker staytus image with mariadb","archived":false,"fork":false,"pushed_at":"2021-02-08T23:59:03.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T04:08:14.479Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ganchdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-07T21:51:49.000Z","updated_at":"2021-02-08T23:59:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e7a4481-32d2-49d6-9ee1-e0ee84c7b6f4","html_url":"https://github.com/ganchdev/docker-staytus","commit_stats":null,"previous_names":["ganchdev/docker-staytus"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ganchdev/docker-staytus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fdocker-staytus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fdocker-staytus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fdocker-staytus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fdocker-staytus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganchdev","download_url":"https://codeload.github.com/ganchdev/docker-staytus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchdev%2Fdocker-staytus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28997022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T23:10:54.274Z","status":"ssl_error","status_checked_at":"2026-02-01T23:10:47.298Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-09T08:01:17.212Z","updated_at":"2026-02-02T00:35:05.519Z","avatar_url":"https://github.com/ganchdev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Staytus\n\nDockerfile to build [naft-a/staytus](https://github.com/naft-a/staytus), it is based on a `ruby:2.6` image. The quickest way to get staytus up and running with a database (mariadb:latest) is using docker compose.\n\n## Quickstart:\n\n```\ngit clone git@github.com:naft-a/docker-staytus.git\ncd docker-staytus/\nnano .env\n```\n\n`.env` is the app's config file so we need to make some changes in there before running any containers:\n\n1. Uncomment the `CLEAN_INSTALL=1` variable to apply the staytus db schema to the newly created mariadb database\n\n```\n## WARNING! THIS VARIABLE WILL ERASE ALL DATA\n## USE FOR NEW STAYTUS INSTALLATIONS ONLY\n# CLEAN_INSTALL=1\n#############################################\n```\n\n2. Populate all other variables inside\n\n```\n## Database config ##\nDB_NAME=staytus\nDB_USER=staytus\nDB_PASSWORD=staytus\n\n## SMTP config ##\nSMTP_HOSTNAME=\nSMTP_PORT=25\nSMTP_USERNAME=\nSMTP_PASSWORD=\n```\n\n3. Run docker compose\n\n```\ndocker-compose up\n```\n\nThat's it! Docker will now pull, build and run the required containers, by default docker compose exposes the app on port 3000 so we should be able to see the app on [localhost:3000](http://localhost:3000)\n\n## !!! IMPORTANT !!!\n\nMake sure you comment out the `CLEAN_INSTALL=1` environment variable in the `.env` file before restarting/running a container, otherwise it will erase data in an already installed staytus application.\n\n---\n\n## Alternative installation (without docker compose)\n\n1. Run mariadb container with a volume, change `\u003cuser\u003e` with the desired user:\n\n```\ndocker run --name mariadb -v /home/\u003cuser\u003e/db_data/:/var/lib/mysql -e MYSQL_USER=staytus -e MYSQL_PASSWORD=staytus -e MYSQL_DATABASE=staytus -e MYSQL_ROOT_PASSWORD=password -d mariadb:latest\n```\n\n2. Build \u0026 run staytus container\n\n```\ncd docker-staytus/\n\n# Build the image\ndocker build -t username/staytus:latest .\n\n# Run a container\ndocker run -it --link mariadb:db -p 3000:8787 -e CLEAN_INSTALL=1 -e DB_ADAPTER=mysql2 -e DB_HOST=db -e DB_POOL=5 -e DB_USER=staytus -e DB_PASSWORD=staytus -e DB_DATABASE=staytus username/staytus:latest\n```\n\n## Other features\n\nThis project supports themes when built with docker compose. The default theme is located in `content/themes/default/`, if you wish to add your custom styles or scripts, simply make the changes and re-run the container\n\nIt also supports Internationalization (I18n) \n\nIn `content/locales/`, add a new file with a locale identifier:\n```\ntouch bg.yml\n```\nAdd all locale definitions and use the localized string in the .erb views:\n\n```\n\u003c%= t('themes.default.hello', locale: :bg) %\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganchdev%2Fdocker-staytus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganchdev%2Fdocker-staytus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganchdev%2Fdocker-staytus/lists"}