Skip to content

Commit

Permalink
Add postgres url along with mongo to support mongo and postgres in pa…
Browse files Browse the repository at this point in the history
…rallel
  • Loading branch information
syed-ali-tw committed Feb 24, 2025
1 parent 55c81df commit 4604547
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 4604547

Please sign in to comment.