fix: broken frontend in docker compose

This commit is contained in:
2026-05-02 19:19:25 +01:00
parent a20ea862b6
commit 942f0d1a77
4 changed files with 13 additions and 9 deletions

View File

@@ -1,3 +1,8 @@
# Secrets
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
JWT_SECRET_KEY=
# Volumes
POSTGRES_DATA=
STREAM_DATA=

View File

@@ -7,10 +7,8 @@ services:
POSTGRES_USER: myuser
POSTGRES_PASSWORD: mypassword
POSTGRES_DB: vodSystem
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ${POSTGRES_DATA}:/var/lib/postgresql/data
backend:
build:
@@ -34,6 +32,7 @@ services:
- .env
environment:
VITE_API_URL: ""
VITE_GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
depends_on:
- backend
restart: unless-stopped
@@ -49,7 +48,6 @@ services:
ports:
- "80:80"
- "1935:1935"
volumes:
- ${STREAM_DATA}:/stream
restart: unless-stopped
volumes:
postgres_data:

1
frontend/.dockerignore Normal file
View File

@@ -0,0 +1 @@
node_modules

View File

@@ -2,7 +2,7 @@ FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm ci
COPY . .
EXPOSE 5173