-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (43 loc) · 917 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (43 loc) · 917 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
version: '3.8'
services:
api:
container_name: api
command: npm run start:dev
build:
target: dev
context: .
dockerfile: app/Dockerfile
ports:
- "3000:3000"
- "9229:9229"
volumes:
- .:/usr/src/app/api
- /usr/src/app/api/node_modules
environment:
DEBUG: nodejs-docker-express:*
NODE_ENV: development
DB_HOST: host.docker.internal
depends_on:
- db
ui:
build:
target: dev
context: .
dockerfile: client/Dockerfile
ports:
- "8080:8080"
container_name: ui
volumes:
- ./client:/usr/src/app/ui
- /usr/src/app/ui/node_modules
db:
container_name: db
image: postgres:14.1-alpine
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: testdb
volumes:
- ./data:/var/lib/postgresql/data