Added backend for the analytics stuff.. #162

Merged
cami merged 1 commit from analytics/backend-deployment into main 2021-07-18 22:00:21 +00:00
5 changed files with 39 additions and 5 deletions
Showing only changes of commit 50b8d4f82e - Show all commits

View file

@ -10,5 +10,16 @@ services:
container_name: backend-prod
environment:
DEBUG: "no"
PORT: 5000
PORT: 5050
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:
- ./backend/src:/app/
ports:
- 5000:5000
- 5050:5050
environment:
DEBUG: "yes"
PORT: 5000
PORT: 5050
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"
]
},
"proxy": "http://localhost:5000"
"proxy": "http://localhost:5050"
}

View file

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

View file

@ -14,5 +14,16 @@ services:
dockerfile: Dockerfile.prod
environment:
DEBUG: "no"
PORT: 5000
PORT: 5050
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