diff --git a/docs/install/postgres.md b/docs/install/postgres.md deleted file mode 100644 index 39ee8d52d8eb6..0000000000000 --- a/docs/install/postgres.md +++ /dev/null @@ -1,95 +0,0 @@ -# PostgreSQL - -Coder ships with a built-in PostgreSQL database, but if you'd like to set up and -use your own, refer to the following instructions. - -For in-depth information, please see the [PostgreSQL -documentation](https://www.postgresql.org/docs/current/tutorial-start.html). - -## Step 1: Install and start PostgreSQL - -### macOS with Homebrew - -1. Install with Homebrew: - - ```console - brew install postgres - ``` - -1. Start PostgreSQL with brew - - ```console - brew services start postgresql - ``` - -1. Connect to PostgreSQL: - - ```console - psql postgres - ``` - -### Debian/Ubuntu - -1. Install PostgreSQL: - - ```console - sudo apt-get install -y postgresql - ``` - -1. Start PostgreSQL: - - ```console - sudo systemctl enable postgresql - sudo systemctl start postgresql - ``` - -1. Connect to PostgreSQL: - - ```console - sudo -u postgresql psql - ``` - -## Step 2: Create a database and user for Coder - -1. Create the `coderuser` role: - - ```console - create role coderuser with login; - ``` - -1. Create a database called `coder` and assign the owner: - - ```console - create database coder owner coder; - ``` - -1. Set the password for `coderuser`: - - ```console - \password coder # enter password when prompted - ``` - -1. Assign rights to the database to your user: - - ```console - grant all privileges on database coder to coderuser; - ``` - -## Using your PostgreSQL database with Coder - -To use your Postgres database with Coder, provide the `CODER_PG_CONNECTION_URL` -variable: - -```console -postgresql://[user[:password]@][networkLocation][:port][/dbname][?param1=value1&...] -``` - -Append to `coder server` to start your deployment. For example: - -```console -CODER_PG_CONNECTION_URL="postgres://@0.0.0.0/?sslmode=disable&password=" \ - coder server -a 0.0.0.0:3000 --verbose -``` - -> If you [installed Coder manually](install.md), you can add the -> `CODER_PG_CONNECTION_URL` variable to `/etc/coder.d/coder.env`. diff --git a/docs/manifest.json b/docs/manifest.json index d71fe22b30335..8c5d7ea5555ea 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -25,11 +25,6 @@ "icon": "", "path": "./install.md", "children": [ - { - "title": "Postgres", - "description": "Learn how to create and use your own Postgres database.", - "path": "./install/postgres.md" - }, { "title": "GitHub OAuth", "description": "Learn how to set up OAuth using your GitHub organization.",