Skip to content

Commit

Permalink
adds compose.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBarberini committed Dec 16, 2023
1 parent afbeee3 commit b805dea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ FROM python:3.11-slim-bookworm

EXPOSE 3000

USER api

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
- Performs rocket simulations and returns simulation data
- Stores simulation input data in mongo-db

## Docker
- docker-compose up --build -d

## Setup
- [Install python3](https://www.python.org/downloads/) 3.11.5 or above
- [install mongodb-atlas](https://www.mongodb.com/try/download/community)
Expand Down
12 changes: 12 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '1'

services:
fastapi-app:
build:
context: .
dockerfile: Dockerfile
image: infinity-api:latest
ports:
- "3000:3000"
env_file:
- .env

0 comments on commit b805dea

Please sign in to comment.