-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (35 loc) · 1.13 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
version: '3'
services:
server:
image: node:12-alpine
ports:
- 3000:3000
volumes:
- ./tsconfig.json:/app/tsconfig.json
- ./shared:/app/shared
- ./server-code/:/app/server-code
working_dir: /app/server-code
command: ["sh", "-c", "npm run-script start:watch"]
# comment in this line below if you want to install the dependencies on every start
#command: ["sh", "-c", "npm install && npm run-script start:watch"]
environment:
- DB_HOST=rethinkdb #this must be the same name as the service name (line 27 of this file)
- DB_NAME=test
depends_on:
- rethinkdb
client:
image: node:12-alpine
ports:
- 4200:4200
volumes:
- ./tsconfig.json:/app/tsconfig.json
- ./shared:/app/shared
- ./client-code/:/app/client-code
working_dir: /app/client-code
command: ["sh", "-c", "npm run-script start:docker"]
# comment in this line below if you want to install the dependencies on every start
#command: ["sh", "-c", "npm install && npm run-script start:docker"]
rethinkdb:
image: rethinkdb:2.3
ports:
- 8080:8080 #admin interface