File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,20 @@ following flags with the `docker run` command:
208
208
If you're interested in using Docker as a workspace provider, please see our
209
209
[ deployment instructions] ( ../../admin/workspace-providers/deployment/docker.md ) .
210
210
211
+ ## Accessing the local PostgreSQL database
212
+
213
+ To query the local PostgreSQL database using the ` psql ` [ terminal-based
214
+ front-end] ( https://www.postgresql.org/docs/13/app-psql.html ) , follow these
215
+ steps.
216
+
217
+ 1 . Run ` docker ps ` to get the name of the Coder container.
218
+
219
+ 1 . Exec into the Coder container and connect to the database.
220
+
221
+ ``` console
222
+ docker exec -it <CODER_CONTAINER> psql --username=coder --host=0.0.0.0 --port=5433 --dbname=postgres
223
+ ```
224
+
211
225
## Known issues
212
226
213
227
Currently, Coder for Docker does not support:
You can’t perform that action at this time.
0 commit comments