-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
80 lines (74 loc) · 1.62 KB
/
docker-compose.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: "3.9"
services:
init:
container_name: trafello-init
image: node:16-alpine
working_dir: /app
volumes:
- ./package.json:/app/package.json
- ./yarn.lock:/app/yarn.lock
- ./node_modules/:/app/node_modules/
networks:
- net
command:
- yarn
dev:
container_name: trafello-dev
image: node:16-alpine
working_dir: /app
volumes:
- ./src/:/app/src/
- ./node_modules/:/app/node_modules/
- ./tsconfig.json:/app/tsconfig.json
- ./package.json:/app/package.json
networks:
- net
expose:
- 8080
ports:
- 8080:8080
#For local docker-compose development environment
command:
- yarn
- dev
# For codespaces or devcontanier development environment
# command: /bin/sh -c "while sleep 1000; do :; done"
serve:
container_name: trafello-serve
image: node:16-alpine
working_dir: /app
volumes:
- dist:/app/dist
- ./node_modules/:/app/node_modules/
- ./package.json:/app/package.json
networks:
- net
expose:
- 9090
ports:
- 9090:9090
#For local docker-compose development environment
command:
- yarn
- serve
build:
container_name: trafello-build
image: node:16-alpine
working_dir: /app
volumes:
- ./src/:/app/src/
- ./node_modules/:/app/node_modules/
- dist:/app/dist/
- ./tsconfig.json:/app/tsconfig.json
- ./package.json:/app/package.json
networks:
- net
command:
- yarn
- build
networks:
net:
driver: bridge
name: trafello_net
volumes:
dist: