From 604d67e9341f521e21a3e074a27b0e084cd5c039 Mon Sep 17 00:00:00 2001 From: syed-ali-tw Date: Tue, 10 Dec 2024 15:04:33 +0000 Subject: [PATCH] WIP --- projects/publisher/docker-compose.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/projects/publisher/docker-compose.yml b/projects/publisher/docker-compose.yml index 1b875d57..76234743 100644 --- a/projects/publisher/docker-compose.yml +++ b/projects/publisher/docker-compose.yml @@ -22,24 +22,26 @@ services: shm_size: 512mb depends_on: - publisher-redis - - mongo-3.6 + - postgres-13 environment: - MONGODB_URI: "mongodb://mongo-3.6/publisher" - TEST_MONGODB_URI: "mongodb://mongo-3.6/publisher-test" + RAILS_ENV: "test" + DATABASE_URL: "postgresql://postgres@postgres-13/publisher" + TEST_DATABASE_URL: "postgresql://postgres@postgres-13/publisher_test" REDIS_URL: redis://publisher-redis publisher-app: &publisher-app <<: *publisher depends_on: - publisher-redis - - mongo-3.6 + - postgres-13 - nginx-proxy - publishing-api-app - link-checker-api-app - publisher-worker - publisher-css environment: - MONGODB_URI: "mongodb://mongo-3.6/publisher" + RAILS_ENV: "test" + DATABASE_URL: "postgresql://postgres@postgres-13/publisher" REDIS_URL: redis://publisher-redis VIRTUAL_HOST: publisher.dev.gov.uk BINDING: 0.0.0.0 @@ -55,11 +57,11 @@ services: <<: *publisher depends_on: - publisher-redis - - mongo-3.6 + - postgres-13 - nginx-proxy - publishing-api-app environment: - MONGODB_URI: "mongodb://mongo-3.6/publisher" + DATABASE_URL: "postgresql://postgres@postgres-13/publisher" REDIS_URL: redis://publisher-redis command: bin/dev worker