FEAT: Docker compose is working! This shit is cool as hell.

This commit is contained in:
Hayden Hargreaves 2025-03-05 18:28:54 -07:00
parent da2aea70ac
commit 0f73c0b679
2 changed files with 23 additions and 1 deletions

22
docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
version: "3.8"
services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3100:3100"
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
# TODO: This will need to be configured, need to rebuild part of the program for that though
- /home/azpect:/media/vault
env_file:
# TODO: This will need to be configured to use GH secrets, ez though
- ./backend/.env

View File

@ -11,7 +11,7 @@ COPY /package*.json ./
RUN npm install RUN npm install
# Copy the rest of the frontend code # Copy the rest of the frontend code
COPY / . COPY . .
# Build the React app using Vite # Build the React app using Vite
RUN npm run build RUN npm run build