This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.4' | |
services: | |
lifext_api: | |
container_name: lifext-api | |
build: | |
context: . | |
dockerfile: Dockerfile | |
entrypoint: | |
- "npm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "debug", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": [ | |
"run-script", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mount docker from a "docker volume" | |
docker run -it --rm -p 27017:27017 --mount source=qhocbackend_qhoc_mongo,target=/data/db mongo:3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($http_app_version ~ 3(.*)$) { | |
proxy_pass http://localhost:3000; | |
} | |
if ($http_app_version ~ 2(.*)$) { | |
proxy_pass http://localhost:3333; | |
} |