feat: add docker support for hermes
This commit is contained in:
parent
e42be90e01
commit
3d53a94d59
3 changed files with 39 additions and 0 deletions
5
backend/hermes/.dockerignore
Normal file
5
backend/hermes/.dockerignore
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.venv
|
||||
.git
|
||||
__pycache__
|
||||
.pytest_cache
|
||||
*.pyc
|
||||
21
backend/hermes/docker-compose.yml
Normal file
21
backend/hermes/docker-compose.yml
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
services:
|
||||
|
||||
hermes:
|
||||
build: .
|
||||
|
||||
container_name: hermes-api
|
||||
|
||||
restart: unless-stopped
|
||||
|
||||
ports:
|
||||
- "8000:8000"
|
||||
|
||||
environment:
|
||||
DATABASE_URL: postgresql://olympus:DEIN_PASSWORT@olympus-db:5432/olympus
|
||||
|
||||
networks:
|
||||
- olympus-network
|
||||
|
||||
networks:
|
||||
olympus-network:
|
||||
external: true
|
||||
13
backend/hermes/dockerfile
Normal file
13
backend/hermes/dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
FROM python:3.13-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN pip install uv
|
||||
|
||||
RUN uv sync
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
CMD ["uv", "run", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue