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 diff --git a/dockerfile b/dockerfile index a0b7df6..b307cc8 100644 --- a/dockerfile +++ b/dockerfile @@ -16,7 +16,7 @@ COPY . . RUN npm run build # Открываем порт 80 -EXPOSE 80 +EXPOSE 8000 # Команда для запуска приложения CMD ["npm", "start"] \ No newline at end of file diff --git a/server/server.js b/server/server.js index 31c948e..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 = 80; +const PORT = 8000; app.use(express.static(path.resolve(__dirname, '..', 'public'))); app.use(express.static(path.resolve(__dirname, '..', 'node_modules')));