diff --git a/app/Dockerfile b/app/Dockerfile index 0c5c8ac..c780015 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -42,7 +42,7 @@ FROM nginx:alpine COPY --from=development /frontend/build /usr/share/nginx/html # Optionally copy a custom Nginx config (if needed) -COPY nginx.conf /etc/nginx/conf.d/default.conf +COPY nginx-container.conf /etc/nginx/conf.d/default.conf # Expose port 80 for Nginx (default HTTP port) EXPOSE 80 diff --git a/app/nginx-container.conf b/app/nginx-container.conf new file mode 100644 index 0000000..8bf7166 --- /dev/null +++ b/app/nginx-container.conf @@ -0,0 +1,13 @@ +server { + listen 80; + server_name localhost; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri /index.html; + } + + error_page 404 /index.html; +} diff --git a/compose.yaml b/compose.yaml index 6d1e6b0..60ae66f 100644 --- a/compose.yaml +++ b/compose.yaml @@ -11,14 +11,6 @@ services: stdin_open: true tty: true ports: - - "8300:3000" - environment: - - WDS_SOCKET_PORT=0 - - PORT=3000 - - DOCSIFY_PORT=8201 + - "8300:80" volumes: - ./app:/app - -volumes: - frontend: - driver: local diff --git a/app/nginx.conf b/nginx-compose.conf similarity index 97% rename from app/nginx.conf rename to nginx-compose.conf index ab22753..ee620a5 100644 --- a/app/nginx.conf +++ b/nginx-compose.conf @@ -10,6 +10,4 @@ server { proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; } - - -} \ No newline at end of file +}