|
|
@ -21,12 +21,12 @@ services:
|
|
|
|
- 37017:27017
|
|
|
|
- 37017:27017
|
|
|
|
container_name: mongo
|
|
|
|
container_name: mongo
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
# - ./components/mongodb/data/db:/data/db
|
|
|
|
- ./components/mongodb/data/db:/data/db
|
|
|
|
# - ./components/mongodb/data/logs:/data/logs
|
|
|
|
- ./components/mongodb/data/logs:/data/logs
|
|
|
|
# - ./components/mongodb/data/conf:/etc/mongo
|
|
|
|
- ./components/mongodb/data/conf:/etc/mongo
|
|
|
|
environment:
|
|
|
|
# environment:
|
|
|
|
- MONGO_INITDB_ROOT_USERNAME=openIM
|
|
|
|
# - MONGO_INITDB_ROOT_USERNAME=openIM
|
|
|
|
- MONGO_INITDB_ROOT_PASSWORD=openIM
|
|
|
|
# - MONGO_INITDB_ROOT_PASSWORD=openIM
|
|
|
|
|
|
|
|
|
|
|
|
#TZ: Asia/Shanghai
|
|
|
|
#TZ: Asia/Shanghai
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|