-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
39 lines (36 loc) · 863 Bytes
/
docker-compose.dev.yml
File metadata and controls
39 lines (36 loc) · 863 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
version: '3'
services:
db:
image: postgres
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./postgres-data:/var/lib/postgresql/data
redis:
restart: always
image: redis:latest
expose:
- "6379"
backend:
build:
context: ./backend
dockerfile: Dockerfile.dev
volumes:
- ./backend:/code
ports:
- "8000:8000"
depends_on:
- db
- redis
- frontend
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.dev
ports:
- "4200:4200"
volumes:
- /opt/app/node_modules
- ./frontend:/opt/app