FEAT: Docker compose is working! This shit is cool as hell.
This commit is contained in:
parent
da2aea70ac
commit
0f73c0b679
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal 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
|
||||
@ -11,7 +11,7 @@ COPY /package*.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copy the rest of the frontend code
|
||||
COPY / .
|
||||
COPY . .
|
||||
|
||||
# Build the React app using Vite
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user