mirror of
https://github.com/anyproto/any-sync-dockercompose.git
synced 2025-06-08 05:47:03 +09:00
Merge pull request #120 from anyproto/119-missing-exposed-ports
docker-compose.yml added ports config for mongo,redis, minio admin
This commit is contained in:
commit
176071776d
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,8 @@ services:
|
||||||
test: test $$(mongosh --port ${MONGO_1_PORT} --quiet --eval "try {rs.initiate({_id:'${MONGO_REPLICA_SET}',members:[{_id:0,host:\"mongo-1:${MONGO_1_PORT}\"}]})} catch(e) {rs.status().ok}") -eq 1
|
test: test $$(mongosh --port ${MONGO_1_PORT} --quiet --eval "try {rs.initiate({_id:'${MONGO_REPLICA_SET}',members:[{_id:0,host:\"mongo-1:${MONGO_1_PORT}\"}]})} catch(e) {rs.status().ok}") -eq 1
|
||||||
interval: 10s
|
interval: 10s
|
||||||
start_period: 30s
|
start_period: 30s
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:${MONGO_1_PORT}:${MONGO_1_PORT}"
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -48,6 +50,8 @@ services:
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:${REDIS_PORT}:${REDIS_PORT}"
|
||||||
|
|
||||||
minio:
|
minio:
|
||||||
image: "minio/minio:${MINIO_VERSION}"
|
image: "minio/minio:${MINIO_VERSION}"
|
||||||
|
@ -67,6 +71,8 @@ services:
|
||||||
default:
|
default:
|
||||||
aliases:
|
aliases:
|
||||||
- "${MINIO_BUCKET}.minio" # <bucket-name>.<endpoint-name>
|
- "${MINIO_BUCKET}.minio" # <bucket-name>.<endpoint-name>
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:${EXTERNAL_MINIO_WEB_PORT}:${MINIO_WEB_PORT}"
|
||||||
|
|
||||||
create-bucket:
|
create-bucket:
|
||||||
image: minio/mc:latest
|
image: minio/mc:latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue