Skip to content

Commit

Permalink
Merge pull request #823 from alphagov/mongo-to-pg
Browse files Browse the repository at this point in the history
Add postgres url along with mongo to support mongo and postgres in parallel
  • Loading branch information
syed-ali-tw authored Feb 25, 2025
2 parents c891851 + 4604547 commit 5ac8a48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions projects/publisher/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ services:
shm_size: 512mb
depends_on:
- publisher-redis
- postgres-16
- mongo-3.6
environment:
MONGODB_URI: "mongodb://mongo-3.6/publisher"
TEST_MONGODB_URI: "mongodb://mongo-3.6/publisher-test"
DATABASE_URL: "postgresql://postgres@postgres-16/publisher"
TEST_DATABASE_URL: "postgresql://postgres@postgres-16/publisher_test"
REDIS_URL: redis://publisher-redis

publisher-app: &publisher-app
<<: *publisher
depends_on:
- publisher-redis
- postgres-16
- mongo-3.6
- nginx-proxy
- publishing-api-app
Expand All @@ -40,6 +44,7 @@ services:
- publisher-css
- signon-app
environment:
DATABASE_URL: "postgresql://postgres@postgres-16/publisher"
MONGODB_URI: "mongodb://mongo-3.6/publisher"
REDIS_URL: redis://publisher-redis
VIRTUAL_HOST: publisher.dev.gov.uk
Expand All @@ -57,9 +62,11 @@ services:
depends_on:
- publisher-redis
- mongo-3.6
- postgres-16
- nginx-proxy
- publishing-api-app
environment:
DATABASE_URL: "postgresql://postgres@postgres-16/publisher"
MONGODB_URI: "mongodb://mongo-3.6/publisher"
REDIS_URL: redis://publisher-redis
command: bin/dev worker
Expand Down

0 comments on commit 5ac8a48

Please sign in to comment.