-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1.1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (42 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
version: '3.8'
services:
app:
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- MONGODB_URI=${MONGODB_URI:-mongodb+srv://hamdan12122211:hSkHAU9ezDJUlDo5@petsdb.tkmut4k.mongodb.net/chat-streaming?retryWrites=true&w=majority}
- JWT_SECRET=${JWT_SECRET:-your-super-secret-jwt-key-change-this-in-production-12345}
- PORT=${PORT:-3000}
env_file:
- .env
volumes:
- ./uploads:/app/uploads
restart: unless-stopped
# Remove depends_on mongo since we're using MongoDB Atlas
# depends_on:
# - mongo
# Optional: Local MongoDB for development (commented out since using Atlas)
# mongo:
# image: mongo:6.0
# ports:
# - "27017:27017"
# volumes:
# - mongo_data:/data/db
# environment:
# - MONGO_INITDB_DATABASE=chat-streaming
# restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./ssl:/etc/nginx/ssl
depends_on:
- app
restart: unless-stopped
volumes:
mongo_data: