Merge branch 'feature/securing-db-pass' into develop

This commit is contained in:
Knee Cola
2025-11-24 22:17:51 +01:00
3 changed files with 19 additions and 11 deletions

2
.env
View File

@@ -1,4 +1,4 @@
MONGODB_URI=mongodb://root:example@localhost:27017/
MONGODB_URI=mongodb://rezije.app:w4z4piJBgCdAm4tpawqB@localhost:27017/utility-bills
GOOGLE_ID=355397364527-adjrokm6hromcaaar0qfhk050mfr35ou.apps.googleusercontent.com
GOOGLE_SECRET=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

View File

@@ -2,8 +2,12 @@
version: "3.7"
services:
mongo:
util-bills-mongo:
image: mongo:4.4.27
ulimits:
nofile:
soft: 64000
hard: 64000
restart: always
ports:
- 27017:27017
@@ -12,13 +16,13 @@ services:
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- ./mongo-volume:/data/db
mongo-express:
util-bills-mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
ME_CONFIG_MONGODB_ADMINPASSWORD: HjktJCPWMBtM1ACrDaw7
ME_CONFIG_MONGODB_URL: mongodb://root:HjktJCPWMBtM1ACrDaw7@util-bills-mongo:27017/

View File

@@ -12,7 +12,7 @@ networks:
internal: true
services:
web-app:
util-bills-app:
image: utility-bills-tracker:${IMAGE_VERSION}
networks:
- traefik-network
@@ -20,7 +20,7 @@ services:
volumes:
- ./etc/hosts/:/etc/hosts
environment:
MONGODB_URI: mongodb://root:example@mongo:27017/
MONGODB_URI: mongodb://rezije.app:w4z4piJBgCdAm4tpawqB@util-bills-mongo:27017/utility-bills
GOOGLE_ID: 355397364527-adjrokm6hromcaaar0qfhk050mfr35ou.apps.googleusercontent.com
GOOGLE_SECRET: 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
AUTH_SECRET: Gh0jQ35oq6DR8HkLR3heA8EaEDtxYN/xkP6blvukZ0w=
@@ -41,8 +41,12 @@ services:
- traefik.http.services.web-app.loadbalancer.server.port=80
- traefik.http.routers.web-app.entrypoints=http
- traefik.http.routers.web-app.rule=Host(`${FQDN:-rezije.app}`)
mongo:
util-bills-mongo:
image: mongo:4.4.27
ulimits:
nofile:
soft: 64000
hard: 64000
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
@@ -50,12 +54,12 @@ services:
- ./mongo-volume:/data/db
networks:
- mongo-network
mongo-express:
util-bills-mongo-express:
image: mongo-express
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/
ME_CONFIG_MONGODB_ADMINPASSWORD: HjktJCPWMBtM1ACrDaw7
ME_CONFIG_MONGODB_URL: mongodb://root:HjktJCPWMBtM1ACrDaw7@util-bills-mongo:27017/
networks:
- traefik-network
- mongo-network