From 930ae98ab76fffa733a40a74c6b2717142febbe8 Mon Sep 17 00:00:00 2001 From: slawk0 Date: Fri, 3 Jan 2025 18:01:26 +0100 Subject: [PATCH] fixed docker-compose.yml, removed attachments volume --- client/Dockerfile | 4 +--- docker-compose.yml | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index 6097cae..6a60006 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -15,13 +15,11 @@ FROM nginx:alpine # Remove the default Nginx configuration file RUN rm /etc/nginx/conf.d/default.conf -RUN mkdir -p /app/attachments && chown -R node:node /app/attachments - # Copy the built files from the builder stage to the Nginx image COPY --from=builder /app/client/dist /usr/share/nginx/html # Expose port 80 EXPOSE 80 -USER node + # Start Nginx in the foreground CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 27dcc06..c6549f6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,8 +13,6 @@ services: PG_HOST: db ports: - "3000" - volumes: - - attachments:/app/attachments depends_on: db: condition: service_healthy @@ -59,5 +57,4 @@ networks: driver: bridge volumes: - postgres-data: - attachments: \ No newline at end of file + postgres-data: \ No newline at end of file