# Discourse Docker service fails to start properly

**URL:** https://meta.discourse.org/t/discourse-docker/393857
**Category:** Self-hosting
**Created:** [January 20, 2026, 9:23am UTC](https://meta.discourse.org/t/discourse-docker/393857 "2026-01-20T09:23:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![AkarinLiu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/akarinliu/32/539577_2.png) [@AkarinLiu](https://meta.discourse.org/u/AkarinLiu)
#### Post date: [January 20, 2026, 9:23am UTC](https://meta.discourse.org/t/discourse-docker/393857/1 "2026-01-20T09:23:08Z")

</div>

I wanted to try Discourse locally, so I used Docker Compose to set it up:

```yaml
version: '3.8'

services:
  postgres:
    image: pgvector/pgvector:pg17
    container_name: discourse-postgres
    restart: always
    environment:
      POSTGRES_USER: discourse
      POSTGRES_PASSWORD: discourse
      POSTGRES_DB: discourse
      # Ensure the extension loads correctly
      # POSTGRES_INITDB_ARGS: "--enable-extensions=vector"
    volumes:
      - ./data/postgres:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U discourse && psql -U discourse -c 'SELECT * FROM pg_extension WHERE extname = ''vector'';'"]
      interval: 10s
      timeout: 5s
      retries: 5

  redis:
    image: redis:7-alpine
    container_name: discourse-redis
    restart: always
    volumes:
      - ./data/redis:/data
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5

  discourse:
    image: discourse/discourse:stable
    container_name: discourse-app
    restart: always
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_healthy
    ports:
      - "80:80"
    environment:
      DISCOURSE_DB_HOST: postgres
      DISCOURSE_DB_USER: discourse
      DISCOURSE_DB_PASSWORD: discourse
      DISCOURSE_REDIS_HOST: redis
      DISCOURSE_DEVELOPER_EMAILS: "admin@example.com"
      DISCOURSE_HOSTNAME: "localhost"
      # Temporary SMTP configuration (must be changed to real values after startup)
      DISCOURSE_SMTP_ADDRESS: "smtp.example.com"
      DISCOURSE_SMTP_PORT: 587
      DISCOURSE_SMTP_USER_NAME: "admin@example.com"
      DISCOURSE_SMTP_PASSWORD: "password"
      # Optional: Disable unnecessary AI features to reduce extension dependencies (if needed)
      DISCOURSE_DISABLE_VECTOR_SEARCH: "true"
    volumes:
      - ./data/discourse:/var/www/discourse/shared

```

However, I encountered an issue preventing me from experiencing the Discourse forum:

```plaintext
discourse-postgres | 2026-01-20 09:19:47.774 UTC [140] ERROR: column "vector" does not exist at character 44
discourse-postgres | 2026-01-20 09:19:47.774 UTC [140] STATEMENT: SELECT * FROM pg_extension WHERE extname = vector;

```

I’m not sure what the reason is. Can any experienced user provide guidance?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [January 20, 2026, 9:24am UTC](https://meta.discourse.org/t/discourse-docker/393857/2 "2026-01-20T09:24:14Z")

</div>

This is not a #Contribute > Bug. This is not the supported local install. See #dev-install

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [January 20, 2026, 1:20pm UTC](https://meta.discourse.org/t/discourse-docker/393857/3 "2026-01-20T13:20:31Z")

</div>

You need the pgvector extension for postgres. Also, discourse won’t work without https. If you really want a local install, you should use development install.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 19, 2026, 1:20pm UTC](https://meta.discourse.org/t/discourse-docker/393857/4 "2026-02-19T13:20:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
