Added backend for the analytics stuff..
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
cami 2021-07-18 23:59:04 +02:00
parent 9808c2509c
commit 50b8d4f82e
5 changed files with 39 additions and 5 deletions

View file

@ -10,5 +10,16 @@ services:
container_name: backend-prod container_name: backend-prod
environment: environment:
DEBUG: "no" DEBUG: "no"
PORT: 5000 PORT: 5050
HOST: "0.0.0.0" HOST: "0.0.0.0"
behametrics-server:
image: registry.gitlab.com/behametrics/server:latest
container_name: "behametrics-server"
ports:
- 5000:5000
environment:
- MONGO_URI=mongodb://mongodb:27017/behametrics
mongodb:
image: mongo:4.0.1
container_name: "behametrics-mongo"
command: mongod --smallfiles

View file

@ -22,8 +22,19 @@ services:
volumes: volumes:
- ./backend/src:/app/ - ./backend/src:/app/
ports: ports:
- 5000:5000 - 5050:5050
environment: environment:
DEBUG: "yes" DEBUG: "yes"
PORT: 5000 PORT: 5050
HOST: "0.0.0.0" HOST: "0.0.0.0"
behametrics-server:
image: registry.gitlab.com/behametrics/server:latest
container_name: "behametrics-server"
ports:
- 5000:5000
environment:
- MONGO_URI=mongodb://mongodb:27017/behametrics
mongodb:
image: mongo:4.0.1
container_name: "behametrics-mongo"
command: mongod --smallfiles

View file

@ -42,5 +42,5 @@
"last 1 safari version" "last 1 safari version"
] ]
}, },
"proxy": "http://localhost:5000" "proxy": "http://localhost:5050"
} }

View file

@ -21,6 +21,7 @@ export default function BehaviorNormal() {
let logger = new Logger({ let logger = new Logger({
//inputs: ["cursor", "wheel", "keyboard", "touch"], //inputs: ["cursor", "wheel", "keyboard", "touch"],
inputs: ["keyboard"], inputs: ["keyboard"],
apiUrl: "http://localhost:5000",
logToConsole: true, logToConsole: true,
}); });

View file

@ -14,5 +14,16 @@ services:
dockerfile: Dockerfile.prod dockerfile: Dockerfile.prod
environment: environment:
DEBUG: "no" DEBUG: "no"
PORT: 5000 PORT: 5050
HOST: "0.0.0.0" HOST: "0.0.0.0"
behametrics-server:
image: registry.gitlab.com/behametrics/server:latest
container_name: "behametrics-server"
ports:
- 5000:5000
environment:
- MONGO_URI=mongodb://mongodb:27017/behametrics
mongodb:
image: mongo:4.0.1
container_name: "behametrics-mongo"
command: mongod --smallfiles