Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 621 Bytes

FASTAPI.md

File metadata and controls

31 lines (26 loc) · 621 Bytes

Running OS2D API Service

Docker Compose

# Please, check all environment variables at `.env` file

# Build Docker image from Docker Compose
docker-compose build

# Run container 
docker-compose up -d

Docker

# Build Docker image
## Must replace all variables by their values
### See  `.env` file
docker build -t os2d:latest \
    --build-arg USER_UID=${USER_UID} \
    --build-arg USER_GID=${USER_GID} \
    --build-arg OS2D_ROOT=${WORKDIR} \
    ./Docker/

# Run container 
docker run -d \
    --name os2d \
    -p 80:80 \
    os2d:latest \
    uvicorn app:app --port 80 --host 0.0.0.0