增加compose配置文件
This commit is contained in:
parent
a206e769be
commit
6ab32d90a8
|
@ -8,8 +8,8 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "27017:27017"
|
- "27017:27017"
|
||||||
environment:
|
environment:
|
||||||
MONGO_INITDB_ROOT_USERNAME: mongodb_username
|
MONGO_INITDB_ROOT_USERNAME: "mongodb_username"
|
||||||
MONGO_INITDB_ROOT_PASSWORD: mongodb_password
|
MONGO_INITDB_ROOT_PASSWORD: "mongodb_password"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/mongodb:/data/db
|
- ./data/mongodb:/data/db
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -47,11 +47,11 @@ services:
|
||||||
MONGODB_IP: scopesentry-mongodb
|
MONGODB_IP: scopesentry-mongodb
|
||||||
MONGODB_PORT: 27017
|
MONGODB_PORT: 27017
|
||||||
DATABASE_NAME: ScopeSentry
|
DATABASE_NAME: ScopeSentry
|
||||||
DATABASE_USER: mongodb_username
|
DATABASE_USER: "mongodb_username"
|
||||||
DATABASE_PASSWORD: mongodb_password
|
DATABASE_PASSWORD: "mongodb_password"
|
||||||
REDIS_IP: scopesentry-redis
|
REDIS_IP: scopesentry-redis
|
||||||
REDIS_PORT: 6379
|
REDIS_PORT: 6379
|
||||||
REDIS_PASSWORD: redis_password
|
REDIS_PASSWORD: "redis_password"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "curl -f http://127.0.0.1:8082 || exit 1"]
|
test: ["CMD-SHELL", "curl -f http://127.0.0.1:8082 || exit 1"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
@ -67,11 +67,11 @@ services:
|
||||||
TimeZoneName: Asia/Shanghai
|
TimeZoneName: Asia/Shanghai
|
||||||
Mongodb_IP: scopesentry-mongodb
|
Mongodb_IP: scopesentry-mongodb
|
||||||
MONGODB_PORT: 27017
|
MONGODB_PORT: 27017
|
||||||
Mongodb_Username: mongodb_username
|
Mongodb_Username: "mongodb_username"
|
||||||
Mongodb_Password: mongodb_password
|
Mongodb_Password: "mongodb_password"
|
||||||
Redis_IP: scopesentry-redis
|
Redis_IP: scopesentry-redis
|
||||||
Redis_PORT: 6379
|
Redis_PORT: 6379
|
||||||
Redis_Password: redis_password
|
Redis_Password: "redis_password"
|
||||||
depends_on:
|
depends_on:
|
||||||
mongodb:
|
mongodb:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
Loading…
Reference in New Issue