-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (47 loc) · 952 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (47 loc) · 952 Bytes
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
version: "3.8"
services:
frontend:
build: ./frontend
container_name: chat-frontend
ports:
- "8080:80"
environment:
- VITE_SOCKET_URL=http://localhost:3000
depends_on:
- backend
backend:
build: ./backend
container_name: chat-backend
ports:
- "3000:3000"
environment:
- PORT=3000
- NODE_ENV=development
volumes:
- ./backend/src:/app/src
depends_on:
- redis
redis:
image: redis:7-alpine
container_name: chat-redis
ports:
- "6379:6379"
nginx:
image: nginx:stable-alpine
container_name: chat-nginx
ports:
- "80:80"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- frontend
- backend
db:
image: postgres:15
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: chat
volumes:
- pg_data:/var/lib/postgresql/data
volumes:
pg_data: