Skip to content

Commit 4604547

Browse files
committed
Add postgres url along with mongo to support mongo and postgres in parallel
1 parent 55c81df commit 4604547

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

projects/publisher/docker-compose.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,20 @@ services:
2222
shm_size: 512mb
2323
depends_on:
2424
- publisher-redis
25+
- postgres-16
2526
- mongo-3.6
2627
environment:
2728
MONGODB_URI: "mongodb://mongo-3.6/publisher"
2829
TEST_MONGODB_URI: "mongodb://mongo-3.6/publisher-test"
30+
DATABASE_URL: "postgresql://postgres@postgres-16/publisher"
31+
TEST_DATABASE_URL: "postgresql://postgres@postgres-16/publisher_test"
2932
REDIS_URL: redis://publisher-redis
3033

3134
publisher-app: &publisher-app
3235
<<: *publisher
3336
depends_on:
3437
- publisher-redis
38+
- postgres-16
3539
- mongo-3.6
3640
- nginx-proxy
3741
- publishing-api-app
@@ -40,6 +44,7 @@ services:
4044
- publisher-css
4145
- signon-app
4246
environment:
47+
DATABASE_URL: "postgresql://postgres@postgres-16/publisher"
4348
MONGODB_URI: "mongodb://mongo-3.6/publisher"
4449
REDIS_URL: redis://publisher-redis
4550
VIRTUAL_HOST: publisher.dev.gov.uk
@@ -57,9 +62,11 @@ services:
5762
depends_on:
5863
- publisher-redis
5964
- mongo-3.6
65+
- postgres-16
6066
- nginx-proxy
6167
- publishing-api-app
6268
environment:
69+
DATABASE_URL: "postgresql://postgres@postgres-16/publisher"
6370
MONGODB_URI: "mongodb://mongo-3.6/publisher"
6471
REDIS_URL: redis://publisher-redis
6572
command: bin/dev worker

0 commit comments

Comments
 (0)