-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
79 lines (72 loc) · 1.33 KB
/
docker-compose.yml
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
74
75
76
77
78
79
version: "3.8"
services:
app:
build:
context: .
target: app-dev
container_name: chat-app
volumes:
- ./backend:/app/backend
ports:
- "8000:8000"
env_file:
- .env
stdin_open: true
tty: true
depends_on:
- db
web:
build:
context: .
target: web-dev
container_name: chat-web
volumes:
- ./frontend:/app/frontend
- node_modules:/app/frontend/node_modules
ports:
- "3000:3000"
env_file:
- .env
depends_on:
- app
stdin_open: true
tty: true
redis:
container_name: chat-redis
restart: unless-stopped
image: redis:7.0.5-alpine
expose:
- 6379
volumes:
- "redis_data:/data"
db:
container_name: chat-db
image: postgres:15.1-alpine
restart: always
env_file:
- .env
volumes:
- pgdata:/var/lib/postgresql/data
app-test:
image: app-test
container_name: chat-app-test
build:
context: .
target: app-test
volumes:
- ./backend:/app/backend
depends_on:
- db
web-test:
image: web-test
container_name: chat-web-test
build:
context: .
target: web-dev
volumes:
- ./frontend:/app/frontend
- node_modules:/app/frontend/node_modules
volumes:
pgdata:
redis_data:
node_modules: