- Converted web application from Next.js to SolidJS with Vite - Replaced React components with SolidJS components - Implemented GraphQL client using URQL - Added authentication, room, and chat components - Updated project structure and configuration files - Removed unnecessary Next.js and docs-related files - Added Docker support for web and API applications
43 lines
No EOL
1 KiB
YAML
43 lines
No EOL
1 KiB
YAML
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/api/Dockerfile
|
|
args:
|
|
NODE_ENV: production
|
|
DATABASE_URL: mysql://root:yRi85wAY64vb8o9Y@db-mariadb-1:3306/unreal_chat
|
|
container_name: unreal-chat-api
|
|
restart: unless-stopped
|
|
environment:
|
|
- DATABASE_URL=mysql://root:yRi85wAY64vb8o9Y@db-mariadb-1:3306/unreal_chat
|
|
- JWT_SECRET=your-secret-key
|
|
- PORT=4000
|
|
ports:
|
|
- "4000:4000"
|
|
networks:
|
|
- default-network
|
|
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/web/Dockerfile
|
|
args:
|
|
VITE_API_URL: https://chat-api.jusemon.com/graphql
|
|
VITE_WS_URL: wss://chat-api.jusemon.com/graphql
|
|
container_name: unreal-chat-web
|
|
restart: unless-stopped
|
|
environment:
|
|
- NODE_ENV=production
|
|
- VITE_API_URL=https://chat-api.jusemon.com/graphql
|
|
- VITE_WS_URL=wss://chat-api.jusemon.com/graphql
|
|
ports:
|
|
- "5173:5173"
|
|
networks:
|
|
- default-network
|
|
|
|
volumes:
|
|
db_data:
|
|
|
|
networks:
|
|
default-network:
|
|
external: true |