Skip to content

Commit

Permalink
Dockerfile and README udpates
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbryant84 committed Sep 13, 2024
1 parent cef5412 commit 114e526
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM python:3.11-slim

WORKDIR /app

COPY . /app

RUN pip install -r requirements.txt

EXPOSE 8000

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
### Scope
This service manages analytics from all sources of interest: Marketing Site, Cloud UI, Cluster API and delivers these events to Segment for downstream processing.

[Notion Documentation](https://www.notion.so/qdrant/Containerised-Server-Side-Analytics-53410490a7ec4dd5b4aaf7b2225b9e0a#aafec9b3bafc4310a715aabf394ae3aa)

## Local Development
### Running
Start virtual environment
Expand Down Expand Up @@ -33,6 +35,13 @@ Run from the root directory
PYTHONPATH=. pytest app/tests
```

## With Docker

Can run
```
docker-compose build && docker-compose up
```

## Using API

### Endpoints
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: '3.8'
services:
web:
server:
build: .
ports:
- "8000:8000"
Expand Down

0 comments on commit 114e526

Please sign in to comment.