mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
Merge and simplify the environment variables in
addon and consumer. Todo: producer Change DATABASE_URI to be generic POSTGRES variables DOES NOT WORK - First pass at upgrading environment variables PostgreSQL environment variables have been split for addon and consumer. ENABLE_SYNC hard coded as `true` MongoDB variables update. Make the addon code more similar to the consumer code Get some parity between addon and consumer
This commit is contained in:
@@ -35,10 +35,9 @@ x-apps: &knightcrawler-app
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: knightcrawler
|
||||
PGUSER: postgres # needed for healthcheck.
|
||||
ports:
|
||||
- "5432:5432"
|
||||
@@ -51,9 +50,8 @@ services:
|
||||
|
||||
mongodb:
|
||||
image: mongo:latest
|
||||
environment:
|
||||
MONGO_INITDB_ROOT_USERNAME: mongo
|
||||
MONGO_INITDB_ROOT_PASSWORD: mongo
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "27017:27017"
|
||||
volumes:
|
||||
@@ -81,7 +79,7 @@ services:
|
||||
context: src/producer
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- env/producer.env
|
||||
- .env
|
||||
<<: *knightcrawler-app
|
||||
networks:
|
||||
- knightcrawler-network
|
||||
@@ -91,7 +89,7 @@ services:
|
||||
context: src/node/consumer
|
||||
dockerfile: Dockerfile
|
||||
env_file:
|
||||
- env/consumer.env
|
||||
- .env
|
||||
deploy:
|
||||
replicas: 3
|
||||
<<: *knightcrawler-app
|
||||
@@ -105,7 +103,7 @@ services:
|
||||
ports:
|
||||
- "7000:7000"
|
||||
env_file:
|
||||
- env/addon.env
|
||||
- .env
|
||||
<<: *knightcrawler-app
|
||||
networks:
|
||||
- knightcrawler-network
|
||||
|
||||
Reference in New Issue
Block a user