-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (31 loc) · 1.15 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
app:
build: .
container_name: "sxapi-core-testing"
ports:
- "8077:8077"
volumes:
- "./sxapi.yml:/conf/sxapi.yml:z"
- "./test:/test:z"
- "./core:/app/core:z"
- "./app.js:/app/app.js:z"
working_dir: /app
## build, test and start application for dev environement (with live-reload when code change)
# command: ["npm" , "run", "dev"]
## install application for dev environement
# command: ["npm", "run", "dev:install"]
## build application for dev environement (clean, install and update)
# command: ["npm" , "run" , "dev:build"]
## start application for dev environement (install, test and start application)
# command: ["npm" , "run" , "dev:start"]
## run application test only
# command: ["npm" , "test"]
## build application for production (clean, install and update)
# command: ["npm" , "run" , "prod:build"]
## start application for production
# command: ["npm" , "run" , "prod:start"]
## build, test and start application for production
# command: ["npm" , "run" , "prod"]
## build application for production (alias `npm run prod:build`)
# command: ["npm" , "run" , "build"]
## run application (node app.js)
command: ["npm" , "start"]