-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (53 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
60 lines (53 loc) · 1.01 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
version: "3"
services:
ui:
build:
context: ./
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
container_name: work-clock-ui
image: work-clock-ui
networks:
- work-clock-net
environment:
- NODE_OPTIONS=--max-old-space-size=8192
volumes:
- ./src:/usr/app/src
- /usr/app/node_modules
expose:
- 3000
api:
build:
context: ./backend
dockerfile: Dockerfile.dev
ports:
- "5000:5000"
container_name: work-clock-api
image: work-clock-api
networks:
- work-clock-net
volumes:
- type: bind
source: ./backend
target: /usr/server
- /usr/server/node_modules
env_file:
- ./backend/.env
expose:
- 5000
db:
image: mongo
ports:
- "27017:27017"
container_name: work-clock-db
networks:
- work-clock-net
volumes:
- mongo-data:/data/db
networks:
work-clock-net:
driver: bridge
volumes:
mongo-data:
driver: local