diff --git a/docker-compose.yml b/docker-compose.yml index 44aab86e03..3fba6ac27b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.5' services: mockserver: build: mockserver - ports: ['9000:8000'] + ports: ['8001:8000'] volumes: - './mockserver/public:/home/public' - './mockserver/server.py:/home/server.py' diff --git a/web/src/helpers/api.js b/web/src/helpers/api.js index 2a61be4831..31806ff644 100644 --- a/web/src/helpers/api.js +++ b/web/src/helpers/api.js @@ -18,7 +18,7 @@ function isUsingLocalEndpoint() { } export function getEndpoint() { - return isUsingLocalEndpoint() ? 'http://localhost:9000' : 'https://api.electricitymap.org'; + return isUsingLocalEndpoint() ? 'http://localhost:8001' : 'https://app-backend.electricitymap.org'; } export function protectedJsonRequest(path) {