> For the complete documentation index, see [llms.txt](https://fredericheem.gitbook.io/starhackit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fredericheem.gitbook.io/starhackit/deployment/dockerimages.md).

# 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
```
