Skip to content

Commit

Permalink
Merge pull request #711 from alphagov/run-content-store-on-postgresql
Browse files Browse the repository at this point in the history
Run local content-store on PostgreSQL, not MongoDB
  • Loading branch information
aldavidson authored Jan 4, 2024
2 parents 62c5df0 + c8d085c commit efe2664
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/how-tos.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ gds aws govuk-integration-readonly --assume-role-ttl 180m ./bin/replicate-postgr

All the scripts, other than `replicate-elasticsearch.sh`, take the name of the app to replicate data for.

Draft data can be replicated with `replicate-mongodb.sh draft-content-store` and `replicate-mongodb.sh draft-router`.
Draft data can be replicated with `replicate-postgresql.sh draft-content-store` and `replicate-mongodb.sh draft-router`.

If you want to download data without importing it, set the `SKIP_IMPORT` environment variable (to anything).

Expand Down
12 changes: 5 additions & 7 deletions projects/content-store/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,18 @@ services:
content-store-lite:
<<: *content-store
depends_on:
# In production this uses Mongo 2.6, however there is not a published Mongo 2.6 image compatible with Arm64
- mongo-3.6
- postgres-13
environment:
MONGODB_URI: "mongodb://mongo-3.6/content-store"
TEST_MONGODB_URI: "mongodb://mongo-3.6/content-store-test"

DATABASE_URL: "postgresql://postgres@postgres-13/content-store"
TEST_DATABASE_URL: "postgresql://postgres@postgres-13/content-store-test"
content-store-app: &content-store-app
<<: *content-store
depends_on:
- mongo-3.6
- postgres-13
- router-api-app
- nginx-proxy
environment:
MONGODB_URI: "mongodb://mongo-3.6/content-store"
DATABASE_URL: "postgresql://postgres@postgres-13/content-store"
VIRTUAL_HOST: content-store.dev.gov.uk
BINDING: 0.0.0.0
expose:
Expand Down

0 comments on commit efe2664

Please sign in to comment.