40 lines
No EOL
889 B
YAML
40 lines
No EOL
889 B
YAML
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/api/Dockerfile
|
|
container_name: unreal-chat-api
|
|
restart: unless-stopped
|
|
environment:
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
- 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 |