From 5eee46dd89e39602fc2f9ce044f58ae67b01e63e Mon Sep 17 00:00:00 2001 From: Alexander Rudenko Date: Sun, 15 Dec 2024 15:27:35 +0300 Subject: [PATCH 1/3] port 80 -> 800 --- dockerfile | 2 +- server/server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index a0b7df6..0cc166d 100644 --- a/dockerfile +++ b/dockerfile @@ -16,7 +16,7 @@ COPY . . RUN npm run build # Открываем порт 80 -EXPOSE 80 +EXPOSE 800 # Команда для запуска приложения CMD ["npm", "start"] \ No newline at end of file diff --git a/server/server.js b/server/server.js index 31c948e..8f8e923 100644 --- a/server/server.js +++ b/server/server.js @@ -6,7 +6,7 @@ const path = require('path'); const cors = require('cors'); const app = express(); -const PORT = 80; +const PORT = 800; app.use(express.static(path.resolve(__dirname, '..', 'public'))); app.use(express.static(path.resolve(__dirname, '..', 'node_modules'))); From 854c64fb9a83ceebc53f987fd04c88948042d1f9 Mon Sep 17 00:00:00 2001 From: Alexander Rudenko Date: Sun, 15 Dec 2024 16:38:33 +0300 Subject: [PATCH 2/3] port 80 -> 8000 --- dockerfile | 2 +- server/server.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfile b/dockerfile index 0cc166d..b307cc8 100644 --- a/dockerfile +++ b/dockerfile @@ -16,7 +16,7 @@ COPY . . RUN npm run build # Открываем порт 80 -EXPOSE 800 +EXPOSE 8000 # Команда для запуска приложения CMD ["npm", "start"] \ No newline at end of file diff --git a/server/server.js b/server/server.js index 8f8e923..b75f65b 100644 --- a/server/server.js +++ b/server/server.js @@ -6,7 +6,7 @@ const path = require('path'); const cors = require('cors'); const app = express(); -const PORT = 800; +const PORT = 8000; app.use(express.static(path.resolve(__dirname, '..', 'public'))); app.use(express.static(path.resolve(__dirname, '..', 'node_modules'))); From fd9e9cc02cdf029415ba37d7bde0652b45f1ace0 Mon Sep 17 00:00:00 2001 From: Alexander Rudenko Date: Sun, 15 Dec 2024 17:01:49 +0300 Subject: [PATCH 3/3] compose --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2734965 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +services: + frontend: + build: + context: . + dockerfile: Dockerfile + ports: + - "8000:8000" + networks: + - team7_network + +networks: + team7_network: + external: true \ No newline at end of file