Merge branch 'main' of git.bizmatch.net:aknuth/annaville-sda-site

This commit is contained in:
Timo Knuth 2025-10-03 18:48:34 +02:00
commit d64695225c
2 changed files with 17 additions and 8 deletions

View File

@ -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

View File

@ -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)