-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
69 lines (62 loc) · 1.68 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
version: '3'
services:
mongo:
image: 'bitnami/mongodb:4.1'
restart: always
container_name: "mongo"
ports:
- "27017:27017"
ws-node-demo:
restart: always
build:
context: ./ws-node-demo
dockerfile: ./Dockerfile.dev
image: local-ws-node-demo-dev:latest
command: ['npm', 'run', 'start:dev']
container_name: ws-node-demo-container
environment:
- loglevel=none
links:
- "mongo:mongo"
working_dir: "/usr/src/app"
volumes:
- "./ws-node-demo:/usr/src/app"
- "/usr/src/app/node_modules"
ports:
- "8080:8080"
- "5858:5858"
ws-ngx-login-demo:
restart: always
container_name: ws-ngx-login-demo-container
build:
context: ./ws-ngx-login-demo
dockerfile: ./Dockerfile.dev
image: local-ws-ngx-login-demo-dev:latest
command: ['npm', 'run', 'start']
volumes:
- ./ws-ngx-login-demo/dist:/app/dist
- ./ws-ngx-login-demo/tools:/app/tools
- ./ws-ngx-login-demo/src:/app/src
- ./ws-ngx-login-demo/yarn.lock:/app/yarn.lock:rw
- ./ws-ngx-login-demo/tsconfig.json:/app/tsconfig.json
- ./ws-ngx-login-demo/package.json:/app/package.json:rw
- ./ws-ngx-login-demo/gulpfile.ts:/app/gulpfile.ts:rw
links:
- "ws-node-demo"
ports:
- '5555:5555'
- '3001:3001'
ws-nginx-demo:
restart: always
image: local-ws-nginx-demo:latest
build:
context: ./ws-nginx-demo
dockerfile: ./Dockerfile.dev
container_name: ws-nginx-demo
volumes:
- ./ws-nginx-demo/etc-dev/nginx.conf:/etc/nginx/nginx.conf:rw
links:
- "ws-node-demo"
- "ws-ngx-login-demo"
ports:
- "80:80"