-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathcompose.s3.yml
More file actions
77 lines (74 loc) · 2.59 KB
/
compose.s3.yml
File metadata and controls
77 lines (74 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Any-Sync-Bundle (AIO) with S3 Storage (MinIO)
#
# Usage:
# docker compose -f compose.s3.yml up -d
#
# This runs the all-in-one bundle (embedded MongoDB/Redis) with MinIO for S3 storage.
# MinIO Console: http://localhost:9001 (minioadmin/minioadmin)
services:
minio:
image: docker.io/minio/minio:RELEASE.2025-09-07T16-13-09Z
container_name: any-sync-bundle-minio
command: ["server", "/data", "--console-address", ":9001", "--address", ":9000"]
restart: unless-stopped
ports:
- "9000:9000" # S3 API
- "9001:9001" # Web Console
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
volumes:
- ./data/minio:/data
healthcheck:
test: ["CMD-SHELL", "bash -c ':> /dev/tcp/127.0.0.1/9000' || exit 1"]
interval: 5s
timeout: 10s
retries: 3
# One-shot container to create buckets on startup
minio-init:
image: docker.io/minio/mc:RELEASE.2025-08-13T08-35-41Z
container_name: any-sync-bundle-minio-init
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
until mc alias set minio http://minio:9000 minioadmin minioadmin; do
echo 'Waiting for MinIO...'; sleep 1;
done;
mc mb minio/anytype-data --ignore-existing;
echo 'Bucket anytype-data created';
exit 0;
"
any-sync-bundle:
image: ghcr.io/grishy/any-sync-bundle:1.4.3-2026-04-21
container_name: any-sync-bundle-aio
restart: unless-stopped
depends_on:
minio:
condition: service_healthy
minio-init:
condition: service_completed_successfully
ports:
- "33010:33010"
- "33020:33020/udp"
volumes:
- ./data:/data
environment:
# Advertise addresses clients should use. Replace with server's hostname/IP.
ANY_SYNC_BUNDLE_INIT_EXTERNAL_ADDRS: "192.168.100.9"
# S3 Storage (MinIO)
ANY_SYNC_BUNDLE_INIT_S3_BUCKET: "anytype-data"
ANY_SYNC_BUNDLE_INIT_S3_ENDPOINT: "http://minio:9000"
ANY_SYNC_BUNDLE_INIT_S3_FORCE_PATH_STYLE: "true"
# ANY_SYNC_BUNDLE_INIT_S3_REGION: "us-east-1" # Only if MinIO uses custom region
# S3 Credentials (via standard AWS env vars)
AWS_ACCESS_KEY_ID: "minioadmin"
AWS_SECRET_ACCESS_KEY: "minioadmin"
# Storage limit per space in bytes (default: 1 TiB)
# Examples: 1 GiB = 1073741824
# 10 GiB = 10737418240
# 150 GiB = 161061273600
# 1 TiB = 1099511627776 (default)
# 2 TiB = 2199023255552
# ANY_SYNC_BUNDLE_INIT_FILENODE_DEFAULT_LIMIT: "1099511627776"