diff --git a/Dockerfile b/Dockerfile index 2847754..72070d5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build the application -FROM node:18-alpine as build-stage +FROM node:lts-alpine as build-stage # Set working directory WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index 822b716..8d66c55 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,16 +1,16 @@ -version: '3.8' - services: rubic-cube: container_name: rubic-cube build: context: . dockerfile: Dockerfile - # ports: - # - "8083:80" + ports: + - "8083:80" expose: - "80" - restart: always + restart: unless-stopped + # volumes: + # - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro networks: - npm_public - rubic-net diff --git a/nginx.conf b/nginx.conf index 45be951..f207243 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,7 @@ server { listen 80; - server_name localhost; + listen [::]:80; + server_name _; root /usr/share/nginx/html; index index.html;