diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index c1ca9c5b6..d3ec227bf 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -7,4 +7,6 @@ RUN usermod -l zipline node \ && chmod 0440 /etc/sudoers.d/zipline \ && sudo apt-get update && apt-get install gnupg2 -y -USER zipline \ No newline at end of file +EXPOSE 3000 + +USER zipline diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 16432d760..b906d2c37 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -41,7 +41,7 @@ "remoteUser": "zipline", "updateRemoteUserUID": true, "remoteEnv": { - "CORE_DATABASE_URL": "postgres://postgres:postgres@localhost/zip10" + "CORE_DATABASE_URL": "postgres://postgres:postgres@db/zip10" }, "portsAttributes": { "3000": { diff --git a/.env.local.example b/.env.local.example index 2284b89ba..7c2a44a40 100644 --- a/.env.local.example +++ b/.env.local.example @@ -7,7 +7,7 @@ CORE_RETURN_HTTPS=true CORE_SECRET="changethis" CORE_HOST=0.0.0.0 CORE_PORT=3000 -CORE_DATABASE_URL="postgres://postgres:postgres@localhost/zip10" +CORE_DATABASE_URL="postgres://postgres:postgres@db/zip10" CORE_LOGGER=false CORE_STATS_INTERVAL=1800 CORE_INVITES_INTERVAL=1800 @@ -47,4 +47,4 @@ URLS_LENGTH=6 RATELIMIT_USER=5 RATELIMIT_ADMIN=3 -# for more variables checkout the docs \ No newline at end of file +# for more variables checkout the docs