Skip to content

Commit

Permalink
[feat]: Added test variation of docker-compose / Doen't conduct migra…
Browse files Browse the repository at this point in the history
…tions yet
  • Loading branch information
MrAmfix committed Feb 19, 2025
1 parent 03c8fa2 commit 0793f31
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docker-compose-database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,25 @@ services:
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "5443:5432"

edulytica_api:
container_name: "EdulyticaAPI"
build:
context: ./src/edulytica_api
dockerfile: Dockerfile
volumes:
- ./src/edulytica_api:/app
ports:
- "8000:8000"
depends_on:
- edulytica_db

edulytica_frontend:
container_name: "EdulyticaFrontend"
build:
context: ./src/edulytica_api/front_end
dockerfile: Dockerfile
volumes:
- ./src/edulytica_api/front_end:/app
ports:
- "3000:3000"
10 changes: 10 additions & 0 deletions src/edulytica_api/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.11-slim

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .

EXPOSE 8000

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
10 changes: 10 additions & 0 deletions src/edulytica_api/front_end/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:16-alpine

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .

EXPOSE 3000

CMD ["npm", "start"]
Binary file added src/edulytica_api/requirements.txt
Binary file not shown.

0 comments on commit 0793f31

Please sign in to comment.