update yml
This commit is contained in:
parent
1ed5cffe45
commit
f29e297afc
|
|
@ -1,9 +1,10 @@
|
|||
version: '3.8'
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
mongodb:
|
||||
image: mongo:6.0
|
||||
container_name: mongodb
|
||||
hostname: mongodb
|
||||
restart: always
|
||||
environment:
|
||||
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USERNAME:-admin}
|
||||
|
|
@ -36,6 +37,7 @@ services:
|
|||
mongo-express:
|
||||
image: mongo-express:latest
|
||||
container_name: mongo-express
|
||||
hostname: mongo-express
|
||||
restart: always
|
||||
environment:
|
||||
- ME_CONFIG_MONGODB_ADMINUSERNAME=${MONGO_ROOT_USERNAME:-admin}
|
||||
|
|
@ -60,6 +62,10 @@ services:
|
|||
networks:
|
||||
mongo_network:
|
||||
driver: bridge
|
||||
# Adding explicit configuration to ensure proper DNS resolution
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.20.0.0/16
|
||||
|
||||
volumes:
|
||||
mongodb_data:
|
||||
|
|
|
|||
Loading…
Reference in New Issue