From f9deff952689f39906ea686814c2a1efac4d2f05 Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Wed, 1 Oct 2025 17:18:08 -0500 Subject: [PATCH] Run Backend on 3070 --- docker-compose.yml | 21 +++++++++++++++------ server/index.js | 4 ++-- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1312825..0d562a1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,17 @@ - -version: "3.9" services: - web: - build: . - ports: - - "8080:80" + backend: + image: node:22-alpine + container_name: annaville-backend restart: unless-stopped + working_dir: /app + volumes: + - ./:/app + ports: + - "3070:3070" + command: sh -c "npm install && npm run start:server" + networks: + - annaville-network + +networks: + annaville-network: + driver: bridge \ No newline at end of file diff --git a/server/index.js b/server/index.js index 3ba5fa3..97c7475 100644 --- a/server/index.js +++ b/server/index.js @@ -7,8 +7,8 @@ import crypto from 'crypto' import multer from 'multer' const app = express() -const port = process.env.PORT || 4001 -const adminToken = process.env.ADMIN_TOKEN || 'timo' +const port = process.env.PORT || 3070 +const adminToken = process.env.ADMIN_TOKEN || 'Driver1' const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename)