This commit is contained in:
2025-10-22 21:44:49 +02:00
parent 211ec56fb6
commit f8823a10e2
4 changed files with 56874 additions and 14 deletions

View File

@@ -1,4 +1,7 @@
services:
# MongoDB
#
# https://www.mongodb.com/
mongodb:
image: mongodb/mongodb-community-server:8.0-ubi8
volumes:
@@ -6,22 +9,22 @@ services:
- mongodb_data:/data/db
- ./mongodb-entrypoint-initdb.d:/docker-entrypoint-initdb.d:Z
- ./initdb.d:/initdb.d:z
ports:
- "27017:27017"
networks:
- caddy_net
#ports:
# - "27017:27017"
#networks:
# - caddy_net
environment:
MONGODB_INITDB_ROOT_USERNAME: ${MONGODB_USER}
MONGODB_INITDB_ROOT_PASSWORD: ${MONGODB_PASSWORD}
mongodb-exporter:
image: percona/mongodb_exporter:0.47
ports:
- 9216:9216
environment:
MONGODB_URI: mongodb://mongodb:${MONGODB_PORT:-27017}
labels:
prometheus-job: mongodb
#mongodb-exporter:
# image: percona/mongodb_exporter:0.47
# ports:
# - 9216:9216
# environment:
# MONGODB_URI: mongodb://mongodb:${MONGODB_PORT:-27017}
# labels:
# prometheus-job: mongodb
mongo-express:
image: mongo-express
@@ -35,8 +38,8 @@ services:
ME_CONFIG_BASICAUTH_PASSWORD: ${MONGOEXPRESS_PASSWORD}
ports:
- 8081:8081
networks:
- caddy_net
#networks:
# - caddy_net
labels:
caddy: mongo-express.localhost
caddy.reverse_proxy: "{{upstreams 8081}}"

31303
initdb.d/commandes.json Normal file

File diff suppressed because it is too large Load Diff

195
initdb.d/neighborhoods.json Normal file

File diff suppressed because one or more lines are too long

25359
initdb.d/restaurants.json Normal file

File diff suppressed because it is too large Load Diff