# Postgres doesn't seem to be running when running Discourse locally using Docker

**URL:** https://meta.discourse.org/t/postgres-doesnt-seem-to-be-running-when-running-discourse-locally-using-docker/353539
**Category:** Support
**Created:** [February 21, 2025, 7:47am UTC](https://meta.discourse.org/t/postgres-doesnt-seem-to-be-running-when-running-discourse-locally-using-docker/353539 "2025-02-21T07:47:39Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![mwaniki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mwaniki/32/313097_2.png) [@mwaniki](https://meta.discourse.org/u/mwaniki)
#### Post date: [February 25, 2025, 8:49am UTC](https://meta.discourse.org/t/postgres-doesnt-seem-to-be-running-when-running-discourse-locally-using-docker/353539/6 "2025-02-25T08:49:49Z")

</div>

If your staging/production site is already updated to PG 15, you can pull a backup from there.

Alternatively, you could try to [manually update](https://meta.discourse.org/t/postgresql-15-update/349515/1#p-1698209-doing-a-manual-update-space-constrained-environments-4) your local data files. This might help:

```plaintext
cd discourse
mkdir data/postgres_new
docker run --rm \
	--entrypoint=/bin/bash \
	-v "$(pwd)/data/postgres":/var/lib/postgresql/13/data \
	-v "$(pwd)/data/postgres_new":/var/lib/postgresql/15/data \
	tianon/postgres-upgrade:13-to-15 \
	-c "apt-get update && apt-get install -y postgresql-13-pgvector postgresql-15-pgvector &&
	docker-upgrade"
mv data/postgres data/postgres_old
mv data/postgres_new data/postgres
docker run --rm -v "$(pwd)/data/postgres":/postgres \
discourse/discourse_dev:release chown -R postgres:postgres /postgres

```

(If you’re using an ARM-based processor, you’ll have to build your own [image](https://github.com/tianon/docker-postgres-upgrade/tree/master/13-to-15).)

---

_[View the full topic](https://meta.discourse.org/t/postgres-doesnt-seem-to-be-running-when-running-discourse-locally-using-docker/353539)._
