Skip to content

Commit

Permalink
πŸ“ docs: add deployment section
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertRosca committed Aug 4, 2023
1 parent 02edfae commit cb4656d
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async with httpx.AsyncClient() as client:
response = await client.post(url, headers=headers, params=params, files=files)
```

## Server Setup and Development
## Development Setup

For docker:

Expand Down Expand Up @@ -125,3 +125,17 @@ Default configuration is something like:
```

Stream/topic can be edited manually in the JSON file or set via CLI at creation time.

## Deployment Setup

Deployment is similar to development with `docker compose`, but instead a docker stack is used to allow for better scaling and update configuration.

Deployment is done with:

```sh
docker stack deploy -c docker-compose.yml zwop
```

To update the stack, use the same command. This will pull in the latest image and perform a rolling restart of the service, which will first start the new container, wait for a successful health check, and then stop the old container.

A cron job runs the deployment command every minute to check for updates.

0 comments on commit cb4656d

Please sign in to comment.