Skip to content

Commit

Permalink
Merge pull request #535 from alphagov/content-publisher-postgres-13
Browse files Browse the repository at this point in the history
Update Content Publisher to use PostgreSQL 13
  • Loading branch information
ollietreend authored Dec 6, 2021
2 parents bf3cd6d + ebaa0d2 commit 1a50766
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions projects/content-publisher/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,26 @@ services:
content-publisher-lite:
<<: *content-publisher
depends_on:
- postgres-9.6
# The version of PostgreSQL temporarily does not match production, as an upgrade in production is being worked on (tracked in https://trello.com/c/9PayaOSK)
- postgres-13
- redis
environment:
DATABASE_URL: "postgresql://postgres@postgres-9.6/content-publisher"
TEST_DATABASE_URL: "postgresql://postgres@postgres-9.6/content-publisher-test"
DATABASE_URL: "postgresql://postgres@postgres-13/content-publisher"
TEST_DATABASE_URL: "postgresql://postgres@postgres-13/content-publisher-test"
REDIS_URL: redis://redis

content-publisher-app: &content-publisher-app
<<: *content-publisher
depends_on:
- postgres-9.6
- postgres-13
- redis
- content-publisher-worker
- publishing-api-app
- asset-manager-app
- nginx-proxy
- content-store-app
environment:
DATABASE_URL: "postgresql://postgres@postgres-9.6/content-publisher"
DATABASE_URL: "postgresql://postgres@postgres-13/content-publisher"
REDIS_URL: redis://redis
VIRTUAL_HOST: content-publisher.dev.gov.uk
BINDING: 0.0.0.0
Expand All @@ -51,11 +52,11 @@ services:
content-publisher-worker:
<<: *content-publisher
depends_on:
- postgres-9.6
- postgres-13
- redis
- publishing-api-app
- asset-manager-app
environment:
DATABASE_URL: "postgresql://postgres@postgres-9.6/content-publisher"
DATABASE_URL: "postgresql://postgres@postgres-13/content-publisher"
REDIS_URL: redis://redis
command: bundle exec sidekiq -C ./config/sidekiq.yml

0 comments on commit 1a50766

Please sign in to comment.