Input-Text geht, CORS behoben
This commit is contained in:
@@ -4,6 +4,8 @@ services:
|
||||
image: mysql:8.0
|
||||
container_name: rezepte_mysql
|
||||
restart: always
|
||||
profiles:
|
||||
- default
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rezepte123
|
||||
MYSQL_DATABASE: rezepte
|
||||
@@ -22,6 +24,8 @@ services:
|
||||
build: .
|
||||
container_name: rezepte_app
|
||||
restart: always
|
||||
profiles:
|
||||
- legacy
|
||||
ports:
|
||||
- "8082:80"
|
||||
volumes:
|
||||
@@ -41,6 +45,8 @@ services:
|
||||
image: phpmyadmin:latest
|
||||
container_name: rezepte_phpmyadmin
|
||||
restart: always
|
||||
profiles:
|
||||
- admin
|
||||
ports:
|
||||
- "8083:80"
|
||||
environment:
|
||||
@@ -53,8 +59,55 @@ services:
|
||||
networks:
|
||||
- rezepte_network
|
||||
|
||||
# Node.js Backend API
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: rezepte-backend
|
||||
profiles:
|
||||
- default
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
PORT: 3001
|
||||
DATABASE_URL: mysql://rezepte_user:rezepte_pass@mysql:3306/rezepte
|
||||
JWT_SECRET: your-super-secret-jwt-key-change-in-production
|
||||
UPLOAD_PATH: /app/uploads
|
||||
MAX_FILE_SIZE: 5242880
|
||||
# CORS_ORIGIN: Restrict in production (example: http://esprimo:3000,http://localhost:3000)
|
||||
CORS_ORIGIN: "*"
|
||||
ports:
|
||||
- "3001:3001"
|
||||
volumes:
|
||||
- uploads_data:/app/uploads
|
||||
- ./uploads:/app/legacy-uploads:ro
|
||||
networks:
|
||||
- rezepte_network
|
||||
depends_on:
|
||||
- mysql
|
||||
restart: unless-stopped
|
||||
|
||||
# Frontend (React + Vite build served by nginx)
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VITE_API_URL: http://localhost:3001/api
|
||||
container_name: rezepte-frontend
|
||||
profiles:
|
||||
- default
|
||||
ports:
|
||||
- "3000:80"
|
||||
networks:
|
||||
- rezepte_network
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
uploads_data:
|
||||
|
||||
networks:
|
||||
rezepte_network:
|
||||
|
||||
Reference in New Issue
Block a user