{"id":21855621,"url":"https://github.com/zeropsio/recipe-java","last_synced_at":"2026-05-07T00:32:58.304Z","repository":{"id":245894713,"uuid":"819489538","full_name":"zeropsio/recipe-java","owner":"zeropsio","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-24T17:59:22.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-16T06:24:29.754Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/zeropsio.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":"2024-06-24T15:52:22.000Z","updated_at":"2024-06-25T07:45:03.000Z","dependencies_parsed_at":"2024-06-24T18:09:24.422Z","dependency_job_id":null,"html_url":"https://github.com/zeropsio/recipe-java","commit_stats":null,"previous_names":["zeropsio/recipe-java"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeropsio%2Frecipe-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeropsio","download_url":"https://codeload.github.com/zeropsio/recipe-java/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244852683,"owners_count":20521160,"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","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-11-28T02:16:50.954Z","updated_at":"2026-05-07T00:32:58.276Z","avatar_url":"https://github.com/zeropsio.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zerops x Java\nThis is a basic example of a Java Spring Boot app running on [Zerops](https://zerops.io) — a simple endpoint with connect, read and write operations to a Zerops PostgreSQL database.\n\n![java](https://github.com/zeropsio/recipe-shared-assets/blob/main/covers/svg/cover-java.svg)\n\n\u003cbr /\u003e\n\n## Deploy on Zerops\nYou can either click the deploy button to deploy directly on Zerops, or manually copy the [import yaml](https://github.com/zeropsio/recipe-java/blob/main/zerops-project-import.yml) to the import dialog in the Zerops app.\n\n[![Deploy on Zerops](https://github.com/zeropsio/recipe-shared-assets/blob/main/deploy-button/green/deploy-button.svg)](https://app.zerops.io/recipe/java)\n\n\u003cbr/\u003e\n\n## Recipe features\n- Java 17 Spring Boot app running on a load balanced **Zerops Java** service\n- Zerops **PostgreSQL 16** service as database\n- Healthcheck setup example\n- Utilization of Zerops' built-in **environment variables** system\n- Utilization of Zerops' built-in **log management**\n\n\u003cbr/\u003e\n\n## Production vs. development\nThe base of the recipe is ready for production, with the main differences being:\n\n- Use a highly available version of the PostgreSQL database (change `mode` from `NON_HA` to `HA` in recipe YAML, `db` service section)\n- Use at least two containers for the Java service to achieve high reliability and resilience (add `minContainers: 2` in recipe YAML, `api` service section)\n\nFurther considerations for running more complex, highly available Java production apps on Zerops:\n- Containers are volatile - use Zerops object storage to store your files\n- Use Zerops Redis (KeyDB) for caching, storing sessions and pub/sub messaging\n- Implement more advanced logging, such as using [SLF4J](http://www.slf4j.org/) with [Logback](http://logback.qos.ch/)\n\n\u003cbr/\u003e\n\n## Changes made over the default installation\nConfigure the application to [listen on all network interfaces](https://github.com/zeropsio/recipe-java/blob/main/src/main/resources/application.properties#L11) (`server.address=0.0.0.0`) to ensure it's accessible within the Zerops environment\n\n\u003cbr/\u003e\n\u003cbr/\u003e\n\nNeed help setting your project up? Join [Zerops Discord community](https://discord.com/invite/WDvCZ54).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeropsio%2Frecipe-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeropsio%2Frecipe-java/lists"}