# Optional S3-compatible object store. Start the core Compose first so the # shared heimdall-net exists, then configure storage in Central to use rustfs. services: rustfs: image: rustfs/rustfs:latest pull_policy: always restart: unless-stopped ports: - "${RUSTFS_API_PORT:-9000}:9000" - "${RUSTFS_CONSOLE_PORT:-9001}:9001" environment: RUSTFS_VOLUMES: /data RUSTFS_ADDRESS: 0.0.0.0:9000 RUSTFS_CONSOLE_ADDRESS: 0.0.0.0:9001 RUSTFS_CONSOLE_ENABLE: "true" RUSTFS_ACCESS_KEY_FILE: /run/secrets/rustfs_access_key RUSTFS_SECRET_KEY_FILE: /run/secrets/rustfs_secret_key secrets: - rustfs_access_key - rustfs_secret_key volumes: - rustfs_data:/data networks: heimdall-net: aliases: - rustfs volumes: rustfs_data: secrets: rustfs_access_key: file: ./optional/secrets/rustfs_access_key rustfs_secret_key: file: ./optional/secrets/rustfs_secret_key networks: heimdall-net: name: heimdall-net external: true