Skip to content

Commit 6271b80

Browse files
HegiTacticalTechJaydiced
authored
fix(repo): update devcontainer defaults to use bundled postgres (#585)
Co-authored-by: Jayvin Hernandez <[email protected]> Co-authored-by: dicedtomato <[email protected]>
1 parent effe1f9 commit 6271b80

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ RUN usermod -l zipline node \
77
&& chmod 0440 /etc/sudoers.d/zipline \
88
&& sudo apt-get update && apt-get install gnupg2 -y
99

10-
USER zipline
10+
EXPOSE 3000
11+
12+
USER zipline

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"remoteUser": "zipline",
4242
"updateRemoteUserUID": true,
4343
"remoteEnv": {
44-
"CORE_DATABASE_URL": "postgres://postgres:postgres@localhost/zip10"
44+
"CORE_DATABASE_URL": "postgres://postgres:postgres@db/zip10"
4545
},
4646
"portsAttributes": {
4747
"3000": {

.env.local.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CORE_RETURN_HTTPS=true
77
CORE_SECRET="changethis"
88
CORE_HOST=0.0.0.0
99
CORE_PORT=3000
10-
CORE_DATABASE_URL="postgres://postgres:postgres@localhost/zip10"
10+
CORE_DATABASE_URL="postgres://postgres:postgres@db/zip10"
1111
CORE_LOGGER=false
1212
CORE_STATS_INTERVAL=1800
1313
CORE_INVITES_INTERVAL=1800
@@ -47,4 +47,4 @@ URLS_LENGTH=6
4747
RATELIMIT_USER=5
4848
RATELIMIT_ADMIN=3
4949

50-
# for more variables checkout the docs
50+
# for more variables checkout the docs

0 commit comments

Comments
 (0)