- Added automatic scrolling to bottom of messages in chat room - Updated CSS to handle app and chat container height more precisely - Implemented scrollToBottom function for messages container - Ensured messages scroll automatically on new message or send - Removed unnecessary port mapping in docker-compose.yml
39 lines
No EOL
931 B
YAML
39 lines
No EOL
931 B
YAML
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/api/Dockerfile
|
|
container_name: unreal-chat-api
|
|
restart: unless-stopped
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
- JWT_SECRET=your-secret-key
|
|
- API_PORT=4000
|
|
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
|
|
- API_HOST=${API_HOST}
|
|
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
|
|
networks:
|
|
- default-network
|
|
|
|
volumes:
|
|
db_data:
|
|
|
|
networks:
|
|
default-network:
|
|
external: true |