{"id":15705524,"url":"https://github.com/guillaumebriday/lobsters-docker","last_synced_at":"2025-08-01T23:34:42.721Z","repository":{"id":84163598,"uuid":"154628575","full_name":"guillaumebriday/lobsters-docker","owner":"guillaumebriday","description":"Lobsters in a Docker container","archived":false,"fork":false,"pushed_at":"2019-08-14T22:01:17.000Z","size":38,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-12T18:50:43.978Z","etag":null,"topics":["docker-image","lobsters","rails","self-hosted"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/guillaumebriday/lobsters-docker/","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/guillaumebriday.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-10-25T07:31:06.000Z","updated_at":"2024-01-10T20:56:01.000Z","dependencies_parsed_at":"2023-03-01T08:00:43.568Z","dependency_job_id":null,"html_url":"https://github.com/guillaumebriday/lobsters-docker","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"bc95496a75e42158a817f19b3a060676d6d183cf"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guillaumebriday/lobsters-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillaumebriday%2Flobsters-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillaumebriday%2Flobsters-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillaumebriday%2Flobsters-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillaumebriday%2Flobsters-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guillaumebriday","download_url":"https://codeload.github.com/guillaumebriday/lobsters-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guillaumebriday%2Flobsters-docker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268312018,"owners_count":24230502,"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-08-01T02:00:08.611Z","response_time":67,"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":["docker-image","lobsters","rails","self-hosted"],"created_at":"2024-10-03T20:16:41.026Z","updated_at":"2025-08-01T23:34:42.696Z","avatar_url":"https://github.com/guillaumebriday.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Docker build status](https://img.shields.io/docker/build/guillaumebriday/lobsters-docker.svg)](https://hub.docker.com/r/guillaumebriday/lobsters-docker/)\n[![Docker Pulls](https://img.shields.io/docker/pulls/guillaumebriday/lobsters-docker.svg)](https://hub.docker.com/r/guillaumebriday/lobsters-docker/)\n[![Docker Stars](https://img.shields.io/docker/stars/guillaumebriday/lobsters-docker.svg)](https://hub.docker.com/r/guillaumebriday/lobsters-docker/)\n\n# Lobsters in a Docker container\n\nThis repo is designed to automatically build an image of [Lobsters](https://github.com/lobsters/lobsters) to use it in a production environmment on Docker.\n\n## Environment variables\n\n### Database\n+ `-e DATABASE_URL` Defaults to \"`mysql2://root:password@lobsters-db/lobsters`\".\n\nWhere `mysql2` is the adapter, `root` is the username, `password` is the password, `lobsters-db` is the host, and `lobsters` the name of database.\n\nIn this example, `lobsters-db` should be the name of the mysql container.\n\nMore informations: [https://edgeguides.rubyonrails.org/configuring.html#configuring-a-database](https://edgeguides.rubyonrails.org/configuring.html#configuring-a-database)\n\n### Application\n+ `-e APP_DOMAIN` Defaults to \"example.com\". This should be your domain name.\n+ `-e APP_NAME` Defaults to \"Example News\". This should be your application name.\n+ `-e SECRET_KEY_BASE` Defaults to \"\". If empty a generic key will be generated.\n+ `-e X_SENDFILE_HEADER` Defaults to \"\". [Specifies the header that your server uses for sending files](https://guides.rubyonrails.org/asset_pipeline.html#x-sendfile-headers).\n+ `-e RAILS_SERVE_STATIC_FILES` Defaults to \"true\". If present then Puma will serve static asset.\n\n### Email\n+ `-e SMTP_HOST` Defaults to \"127.0.0.1\".\n+ `-e SMTP_PORT` Defaults to \"25\".\n+ `-e SMTP_STARTTLS_AUTO` Defaults to \"true\".\n+ `-e SMTP_USERNAME` Defaults to \"\".\n+ `-e SMTP_PASSWORD` Defaults to \"\".\n\n## Starting the containers\n\nChange or add the environmment variables to suit your needs, then run:\n\n```bash\n# Starting the mysql container\n$ docker run --name lobsters-db -v /my/own/datadir:/var/lib/mysql -e \"MYSQL_ROOT_PASSWORD=password\" -e \"MYSQL_DATABASE=lobsters\" -d mysql:5.7\n\n# Starting the lobsters container\n$ docker run --name lobsters --link lobsters-db -p 3000:3000 -d guillaumebriday/lobsters-docker\n```\n\nYou can use this docker-compose for this project:\n\n```bash\n$ docker-compose up -d\n```\n\n## Administration\n\nIn lobsters, as mentioned in the documentation:\n\n\u003e Basic moderation happens on-site, but most other administrative tasks require use of the rails console in production.\n\nTo open a console in production:\n\n```bash\n$ docker run --rm -it --link lobsters-db guillaumebriday/lobsters-docker bundle exec rails c\n\n# Or with docker-compose\n$ docker-compose run --rm lobsters bundle exec rails c\n```\n\n## Credits\n\nInspired by:\n\n+ [https://github.com/jamesbrink/docker-lobsters](https://github.com/jamesbrink/docker-lobsters)\n\n## Contributing\n\nDo not hesitate to contribute to the project by adapting or adding features ! Bug reports or pull requests are welcome.\n\n## License\n\nThis project is released under the [MIT](http://opensource.org/licenses/MIT) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumebriday%2Flobsters-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguillaumebriday%2Flobsters-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumebriday%2Flobsters-docker/lists"}