# Creating a Microservice

1. Once you log in to Ozone, select microservices on the left-side bar.

<figure><img src="https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252F1sKM3wPMKVbWTQBgPHjN%252Fimage-20240416-103346%2520%281%29.png%3Falt%3Dmedia%26token%3D89fcd17f-761c-4d36-abbc-470db3463379&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=3d94aae5&#x26;sv=1" alt=""><figcaption></figcaption></figure>

2. After clicking on microservices a modal window appears. Click on +New Microservice at the top-right corner.

<figure><img src="https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252Fnk1UDP4DC4yo2qApXtn7%252Fimage-20240415-093640%2520%281%29.png%3Falt%3Dmedia%26token%3D9870ca1a-1881-49d9-bd96-a73b2105f272&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=61a07394&#x26;sv=1" alt=""><figcaption></figcaption></figure>

3. If you already have a git repository linked, you can choose that from the dropdown, otherwise, you can click on the link shown below to link a git repository

<figure><img src="https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FtfIr20vCYrdnFzvlmzGi%252Fimage-20240415-094853.png%3Falt%3Dmedia%26token%3Df7b03c0d-151e-4f78-8c5e-b59628855282&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=f5d058b3&#x26;sv=1" alt=""><figcaption></figcaption></figure>

4. If you already have a registry integration linked, you can choose that from the dropdown, otherwise, you can click on the link shown below to link the registry provider of your choice. This registry will be used to push and/or pull the required images

<figure><img src="https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FYW3D3eRy5ClJyCnjx2Hx%252Fimage-20240415-102751.png%3Falt%3Dmedia%26token%3Daad11115-a21d-4d17-aa8a-5311a7adf1d3&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=a4bf5698&#x26;sv=1" alt=""><figcaption></figcaption></figure>

5. A microservice can run in different environments. There are three environments by default - Development, Staging, and Production.

   <figure><img src="https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252Fp6NGlRu7VDUv0tSa1bqw%252Fimage-20240415-145204.png%3Falt%3Dmedia%26token%3Dd39f53df-4dd2-4d5b-adf3-41d6eec368f0&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=39bf2d6&#x26;sv=1" alt=""><figcaption></figcaption></figure>

6. But you can easily add more custom environments to fit your needs by clicking on the option that is shown below<br>

   <figure><img src="https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252F7Cq9TXS7yJgLbge6sKMD%252Fimage-20240415-150013.png%3Falt%3Dmedia%26token%3Dd88728b9-221c-476a-86a0-47fbdb6e5389&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=8767a95e&#x26;sv=1" alt=""><figcaption></figcaption></figure>

7. Ozone relies on a Dockerfile to build and package your microservice. This file lists instructions for the Docker daemon to follow when building a container image. By specifying the Dockerfile location, Ozone understands how to construct the container image that will ultimately house your deployed microservice.

   <figure><img src="https://docs.ozone.one/~gitbook/image?url=https%3A%2F%2F3829750647-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FAObcOkMb6sCSnSdcUOTm%252Fuploads%252FUVorVPKHyK8FTdPNmU1A%252Fimage-20240416-145856.png%3Falt%3Dmedia%26token%3Db841e9b7-588e-4f35-9eee-c5018c0d94c1&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=b8050d51&#x26;sv=1" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ozone.one/ozone-end-user-guide/quick-onboarding/creating-a-microservice.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
