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