-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 804 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 804 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
version: '3.7'
services:
backend:
build:
context: .
target: development-backend
command: npx nodemon server.js
depends_on:
- postgres
environment:
PORT: 8080
volumes:
- ./backend:/srv/todo/backend
- backend_node_modules:/srv/todo/backend/node_modules
frontend:
build:
context: .
target: development-frontend
command: npx webpack-dev-server
depends_on:
- backend
environment:
HOST: frontend
PORT: 8080
ports:
- '8080:8080'
volumes:
- ./frontend:/srv/todo/frontend
- frontend_node_modules:/srv/todo/frontend/node_modules
postgres:
image: postgres:12
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
backend_node_modules:
frontend_node_modules: