-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
44 lines (42 loc) · 852 Bytes
/
docker-compose.yaml
File metadata and controls
44 lines (42 loc) · 852 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
44
version: '3.7'
services:
server:
build:
context: ./server
dockerfile: Dockerfile
image: ezdoc_server
container_name: ezdoc_server_container
command: node index.js
volumes:
- ./server/:/usr/src/app
- /usr/src/app/node_modules
ports:
- "3001:3001"
env_file: ./server/.env
environment:
- NODE_ENV=development
networks:
- app-network
client:
build:
context: ./client
dockerfile: Dockerfile
image: ezdoc_client
container_name: ezdoc_client_container
command: npm start
volumes:
- ./client/:/usr/app
- /usr/app/node_modules
depends_on:
- server
ports:
- "3000:3000"
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
node_modules:
web-root:
driver: local