diff --git a/.env.example b/.env.example index 315c280..5ddd2a0 100644 --- a/.env.example +++ b/.env.example @@ -1,3 +1,8 @@ +# Secrets GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= -JWT_SECRET_KEY= \ No newline at end of file +JWT_SECRET_KEY= + +# Volumes +POSTGRES_DATA= +STREAM_DATA= \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 4c857aa..0aa7715 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" - restart: unless-stopped - -volumes: - postgres_data: + volumes: + - ${STREAM_DATA}:/stream + restart: unless-stopped \ No newline at end of file diff --git a/frontend/.dockerignore b/frontend/.dockerignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/frontend/.dockerignore @@ -0,0 +1 @@ +node_modules diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 0561dd7..f7b922a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -2,7 +2,7 @@ FROM node:20-alpine WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm ci COPY . . EXPOSE 5173