From f7622d10a63aa48ef07b262255dee2a8553d88d2 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Tue, 10 Jan 2023 21:58:12 +0100 Subject: [PATCH] add mongo docker --- inventory/group_vars/db | 3 +++ inventory/group_vars/db_vault | 30 ++++++++++++----------- server/templates/docker-compose-db.yml.j2 | 8 ++++++ server/templates/env-db.j2 | 5 +++- 4 files changed, 31 insertions(+), 15 deletions(-) diff --git a/inventory/group_vars/db b/inventory/group_vars/db index f160199..594c8d6 100644 --- a/inventory/group_vars/db +++ b/inventory/group_vars/db @@ -17,8 +17,11 @@ project_env: "env-db.j2" redis_url: redis.valczeryba.ovh redis_port: 63791 + +mongo_port: 28017 ports_tcp: - "{{ postgres_port }}" - "{{ redis_port }}" + - "{{ mongo_port }}" covas_liquibase: false \ No newline at end of file diff --git a/inventory/group_vars/db_vault b/inventory/group_vars/db_vault index cdfd027..2f07ce2 100644 --- a/inventory/group_vars/db_vault +++ b/inventory/group_vars/db_vault @@ -1,15 +1,17 @@ $ANSIBLE_VAULT;1.1;AES256 -31393434663833363061653862663138393835663538346465383065323231616163343964303966 -3437316337383464323933306632393766386234366133360a313466356333343939396134333430 -38376636663234666534666637663638633766623034323164393234656365613437643738393833 -3466616536353935340a366165346464343863613133373739366534373835396436343138326532 -37376261383631366531333061353133643432623164633335373037393732366132346438326163 -32386639396661626431616463383165393035396139333336316263636236323130656534636237 -36636536613064393632343564343734626666323037303630623764316338346161373134656165 -64666133663364633064323763303964663964393139646663306334353435633839383164313734 -61373731356331336265663835346234323934656236646363663562396131336161663662393634 -65383761363763326366313063333337633039383830663066663261393464646437663366366565 -39366661653934626337656336306435363263373534323239353831343231303134613338623236 -63306464393031666666613530326138646535613534303365323965323466366131343236663030 -37323032656136383661333331363635643234333138626239383733336135333637353930316338 -6537303238333962313362376434383038666133376134383132 +64653663303437333433396331636461353737313832366539353264623561393761666464316363 +3633613637663530383739353830366662646461653138650a663939373238663737363737353535 +65313433373565343830396230656162663361366265363131323961353764333462386464376239 +3662656464633566310a616331653331383631343065396537333338353738353865636539396533 +63333436663739346231626139316265643438393739383761383033616465613964643830643033 +66336237303833616638636336393739326332623738393032646561376564343835353533366632 +64633239656639303063653538396562393366396137316530633638333539333631343238376463 +62366463393234663834616639633635303537633565636634383435363663336363386238646563 +32633634323332393765343933313666333134346132636637383233633064383663323531333834 +61366334633532653430326266623366353761626330386439626437623266316636633235326263 +33393233313463656335353639633262623335633336613030633435363232316632313031663034 +34366130346135336365376332383637343761303435623138613533393561613039353561663866 +66636139323138376566643239383563363738363130373735653365363133303864386462333065 +63623934623032353638643034363439616333646530306430346461393264323661376335393366 +62656639633339303536643535383035383964623761386166373135323465663132323262663961 +39313365616266333636 diff --git a/server/templates/docker-compose-db.yml.j2 b/server/templates/docker-compose-db.yml.j2 index 09d27ac..6f77da6 100644 --- a/server/templates/docker-compose-db.yml.j2 +++ b/server/templates/docker-compose-db.yml.j2 @@ -11,6 +11,14 @@ services: - PGDATA=/var/lib/postgresql/data/pgdata ports: - "54321:5432" + + + mongo: + image: mongo + env_file: + - .env + ports: + - "28017:27017" redis: image: redis/redis-stack-server:latest diff --git a/server/templates/env-db.j2 b/server/templates/env-db.j2 index f90d46b..c37a220 100644 --- a/server/templates/env-db.j2 +++ b/server/templates/env-db.j2 @@ -1,3 +1,6 @@ POSTGRES_PASSWORD={{ postgres_password }} POSTGRES_USER={{ postgres_user }} -POSTGRES_DB={{ postgres_db }} \ No newline at end of file +POSTGRES_DB={{ postgres_db }} + +MONGO_INITDB_ROOT_USERNAME={{ mongo_user }} +MONGO_INITDB_ROOT_PASSWORD={{ mongo_password }} \ No newline at end of file