forked from this-sam/nest-react-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 885 Bytes
/
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
version: "3.5"
services:
nestjs:
build:
context: ./apps/backend
dockerfile: Dockerfile.dev
env_file:
- ./apps/backend/.env.dev
ports:
- 3001:3001
volumes:
- ./apps/backend/:/app
- /app/node_modules
react_app:
build:
context: ./apps/frontend
dockerfile: Dockerfile.dev
env_file:
- ./apps/frontend/.env.dev
ports:
- 3000:3000
volumes:
- ./apps/frontend/:/app
- /app/node_modules
postgres:
image: postgres:13.1
environment:
POSTGRES_PASSWORD: example
ports:
- 5432:5432
redis:
image: redis:6.2-rc1
environment:
REDIS_PASSWORD: password
redis_commander:
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- 8081:8081
depends_on:
- redis