diff --git a/Dockerfile b/Dockerfile index e9483c9c76..5886275757 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ ENV PORT=4000 \ ETHEREUM_JSONRPC_VARIANT="ganache" \ ETHEREUM_JSONRPC_HTTP_URL="http://host.docker.internal:7545" \ ETHEREUM_JSONRPC_WEB_SOCKET_URL="ws://host.docker.internal:7545" \ - POSTGRES_URL="host.docker.internal" \ DATABASE_URL="postgresql://postgres:@host.docker.internal:5432/explorer?ssl=false" \ SECRET_KEY_BASE="RMgI4C1HSkxsEjdhtGMfwAHfyT6CKWXOgzCboJflfSm4jeAlic52io05KB6mqzc5" diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000..9c115cb0f8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: '3' +services: + blockscout: + build: . + ports: + - "4000:4000" + environment: + ETHEREUM_JSONRPC_HTTP_URL: "http://host.docker.internal:2000" + ETHEREUM_JSONRPC_WEB_SOCKET_URL: "ws://host.docker.internal:2000" +