Files
mcs-lose/docker-compose.yml
theis.gaedigk 0a2f1e650d Enhance backend and frontend setup with MySQL integration, Docker configurations, and toast notifications
- Updated .gitignore to include additional environment and build files
- Configured Dockerfiles for backend and frontend with npm install and port exposure
- Added MySQL connection pool and query function in backend services
- Implemented form submission with toast notifications in MainForm component
- Updated package.json and package-lock.json for new dependencies
- Enhanced routing and layout in frontend with toast notifications
2025-08-11 19:56:43 +02:00

44 lines
955 B
YAML

services:
# mcs_lose-frontend:
# container_name: mcs_lose-frontend
# build: ./frontend
# ports:
# - "8001:8001"
# environment:
# - CHOKIDAR_USEPOLLING=true
# volumes:
# - ./frontend:/app
# - /app/node_modules
# restart: unless-stopped
mcs_lose-backend:
container_name: mcs_lose-backend_express
build: ./backend
ports:
- "8002:8002"
environment:
DB_HOST: mysql
DB_USER: root
DB_PASSWORD: D7Ze0lwV9hMrNQHdz1Q8yi0MIQuOO8
DB_NAME: mcs_lose
depends_on:
- mysql
volumes:
- ./backend:/mcs_lose-backend
restart: unless-stopped
mysql:
container_name: mcs_lose-mysql
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: D7Ze0lwV9hMrNQHdz1Q8yi0MIQuOO8
MYSQL_DATABASE: mcs_lose
volumes:
- mysql-data:/var/lib/mysql
ports:
- "3308:3306"
volumes:
mysql-data: