# Build, Tag and Push Docker Images

Edit [docker-compose.yml](https://github.com/FredericHeem/starhackit/tree/c42a9a5248ff2b16bf5de267a9c3a0d9b683fbb4/docker-compose.yml) at the root of the project and change the docker organisation name and as well as the version of the images for the **api** and **ui**

Change the frontend and backend version in their respective *package.json*

## Build

To build the **api** and **ui** images

```
$ docker-compose build
```

## Run the whole system

Before pushing the images to the repository, let's start whole system with the api, ui, postgres and redis:

```
$ docker-compose up -d
Creating network "starhackit_net" with the default driver
Creating starhackit_pg_1    ... done
Creating starhackit_redis_1 ... done
Creating starhackit_api_1   ... done
Creating starhackit_ui_1    ... done
```

Open a web browser at the given address:

```
$ open http://localhost:3001/
```

If something goes wrong, check the *backend* logs:

```
$ docker logs starhackit_api_1
```

## Push

Push the images to the docker repository:

```
$ docker-compose push
```


---

# 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://fredericheem.gitbook.io/starhackit/deployment/dockerimages.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.
