update docker-compose settings
This commit is contained in:
Родитель
e1605b46c2
Коммит
13dd220ef2
|
@ -7,6 +7,8 @@ services:
|
|||
volumes:
|
||||
- .:/ws:cached
|
||||
command: /bin/sh -c "while sleep 1000; do :; done"
|
||||
environment:
|
||||
- 'NODE_CONFIG_ENV=codespaces'
|
||||
links:
|
||||
- mongodb
|
||||
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"db": {
|
||||
"automigrate": true,
|
||||
"seedMockData": true,
|
||||
"seedConnectionString": "mongodb://mongodb:27017",
|
||||
"connectionString": "mongodb://mongodb:27017"
|
||||
}
|
||||
}
|
|
@ -13,10 +13,10 @@
|
|||
"pretty": true
|
||||
},
|
||||
"db": {
|
||||
"connectionString": "mongodb://mongodb:27017",
|
||||
"seedConnectionString": "mongodb://mongodb:27017",
|
||||
"automigrate": false,
|
||||
"seedMockData": false,
|
||||
"automigrate": true,
|
||||
"seedMockData": true,
|
||||
"seedConnectionString": "mongodb://localhost:27017",
|
||||
"connectionString": "mongodb://localhost:27017",
|
||||
"database": "greenlight",
|
||||
"usersCollection": "users",
|
||||
"organizationsCollection": "organizations",
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"db": {
|
||||
"automigrate": true,
|
||||
"seedMockData": true,
|
||||
"seedConnectionString": "mongodb://localhost:27017",
|
||||
"connectionString": "mongodb://localhost:27017"
|
||||
}
|
||||
}
|
|
@ -9,5 +9,9 @@
|
|||
},
|
||||
"security": {
|
||||
"jwtSecret": null
|
||||
},
|
||||
"db": {
|
||||
"automigrate": false,
|
||||
"seedMockData": false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,5 +14,9 @@
|
|||
},
|
||||
"security": {
|
||||
"jwtSecret": null
|
||||
},
|
||||
"db": {
|
||||
"automigrate": false,
|
||||
"seedMockData": false
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,11 +1,16 @@
|
|||
#
|
||||
# compose file for local env -
|
||||
# spins up a database instance for the app to use
|
||||
#
|
||||
version: '3'
|
||||
services:
|
||||
mongodb_3616:
|
||||
mongodb:
|
||||
image: mongo:4.0.27
|
||||
ports:
|
||||
- '27017:27017'
|
||||
volumes:
|
||||
- dbvolume:/data
|
||||
environment: { AUTH: 'no' }
|
||||
|
||||
volumes:
|
||||
dbvolume: {}
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
"license": "MIT",
|
||||
"scripts": {
|
||||
"clean": "essex clean .version dist/ deploy.zip",
|
||||
"start": "docker-compose up -d && NODE_CONFIG_ENV='development' DEBUG='cbosuite:*' nodemon src/index.ts",
|
||||
"start:api": "yarn start",
|
||||
"start:api:static": "docker-compose up -d && NODE_CONFIG_ENV='development' DEBUG='cbosuite:*' yarn node dist/src/index.js",
|
||||
"start_db": "docker-compose up -d ",
|
||||
"start_api": "DEBUG='cbosuite:*' nodemon src/index.ts",
|
||||
"start:api": "yarn start_db && yarn start_api",
|
||||
"start:api:static": "yarn start_db && DEBUG='cbosuite:*' yarn node dist/src/index.js",
|
||||
"build": "run-s compile write_deploy_package",
|
||||
"build:api": "yarn build",
|
||||
"archive": "./scripts/archive.sh",
|
||||
|
|
Загрузка…
Ссылка в новой задаче