Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions compose.external.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ services:
- "--port"
- "27017"
restart: unless-stopped
ports:
- "27017:27017"
volumes:
- ./data/mongo:/data
healthcheck:
Expand Down Expand Up @@ -49,8 +47,6 @@ services:
- "--loadmodule"
- "/opt/redis-stack/lib/redisbloom.so"
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- ./data/redis:/data
healthcheck:
Expand Down Expand Up @@ -86,3 +82,30 @@ services:
# 1 TiB = 1099511627776 (default)
# 2 TiB = 2199023255552
# ANY_SYNC_BUNDLE_INIT_FILENODE_DEFAULT_LIMIT: "1099511627776"

# MongoDB 4.4 for CPUs without AVX instruction support (required by MongoDB 5.0+).
# More info: https://github.com/grishy/any-sync-bundle/pull/39
# Official recommendation: https://github.com/anyproto/any-sync-dockercompose/wiki/Troubleshooting-&-FAQ
# Uncomment the following block and comment out the MongoDB 8.0 block above.
# mongo:
# image: docker.io/mongo:4.4
# container_name: any-sync-bundle-mongo
# command:
# - "--replSet"
# - "rs0"
# - "--port"
# - "27017"
# restart: unless-stopped
# volumes:
# - ./data/mongo:/data/db
# healthcheck:
# test:
# - CMD-SHELL
# - >
# test $$(mongo --quiet --host 127.0.0.1:27017 --eval
# "try { rs.initiate({_id:'rs0', members:[{_id:0, host:'mongo:27017'}]}).ok }
# catch (e) { rs.status().ok }") -eq 1
# interval: 5s
# timeout: 5s
# retries: 12
# start_period: 10s
Loading