-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.44 KB
/
Copy pathdocker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.44 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: '3.9'
services:
mongodb:
image: mongo:7.0
container_name: vibeschat_mongo
restart: unless-stopped
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
environment:
MONGO_INITDB_DATABASE: vibeschat
networks:
- vibeschat_net
redis:
image: redis:7.2-alpine
container_name: vibeschat_redis
restart: unless-stopped
ports:
- '6379:6379'
volumes:
- redis_data:/data
command: redis-server --appendonly yes
networks:
- vibeschat_net
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: vibeschat_backend
restart: unless-stopped
ports:
- '5000:5000'
env_file:
- ./backend/.env
environment:
- NODE_ENV=production
- MONGODB_URI=mongodb://mongodb:27017/vibeschat
- REDIS_URL=redis://redis:6379
depends_on:
- mongodb
- redis
volumes:
- ./backend/uploads:/app/uploads
networks:
- vibeschat_net
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: vibeschat_frontend
restart: unless-stopped
ports:
- '3000:3000'
environment:
- NEXT_PUBLIC_API_URL=http://localhost:5000/api
- NEXT_PUBLIC_SOCKET_URL=http://localhost:5000
depends_on:
- backend
networks:
- vibeschat_net
volumes:
mongo_data:
redis_data:
networks:
vibeschat_net:
driver: bridge