services:
server1:
container_name: "automq-server1"
image: automqinc/automq:1.6.0-rc0
stop_grace_period: 1m
environment:
# Replace with your Tigris credentials
- KAFKA_S3_ACCESS_KEY=tid_YOUR_ACCESS_KEY_HERE
- KAFKA_S3_SECRET_KEY=tsec_YOUR_SECRET_KEY_HERE
- KAFKA_HEAP_OPTS=-Xms1g -Xmx4g -XX:MetaspaceSize=96m
-XX:MaxDirectMemorySize=1G
- CLUSTER_ID=3D4fXN-yS1-vsQ8aJ_q4Mg
command:
- bash
- -c
- |
/opt/automq/kafka/bin/kafka-server-start.sh \
/opt/automq/kafka/config/kraft/server.properties \
--override cluster.id=$$CLUSTER_ID \
--override node.id=0 \
--override controller.quorum.voters=0@server1:9093 \
--override controller.quorum.bootstrap.servers=server1:9093 \
--override advertised.listeners=PLAINTEXT://server1:9092 \
--override s3.data.buckets='0@s3://your-automq-data?region=auto&endpoint=https://t3.storage.dev' \
--override s3.ops.buckets='1@s3://your-automq-ops?region=auto&endpoint=https://t3.storage.dev' \
--override s3.wal.path='0@s3://your-automq-data?region=auto&endpoint=https://t3.storage.dev'
networks:
- automq_net
networks:
automq_net:
driver: bridge
**Key Configuration Parameters:**
- `KAFKA_S3_ACCESS_KEY` - Your Tigris Access Key (starts with `tid_`)
- `KAFKA_S3_SECRET_KEY` - Your Tigris Secret Key (starts with `tsec_`)
- `s3.data.buckets` - Your data bucket name in the S3 URL (stores Kafka data)
- `s3.ops.buckets` - Your ops bucket name in the S3 URL (stores operational
metadata)
- `s3.wal.path` - Write-Ahead Log path (typically same as data bucket)
- `endpoint=https://t3.storage.dev` - Tigris S3-compatible endpoint
- `region=auto` - Tigris automatically routes to the nearest region
For detailed information on these Tigris and S3 configuration parameters, refer
to the
[AutoMQ Broker and Controller Configuration guide](https://www.automq.com/docs/automq/configuration/broker-and-controller-configuration#s3-data-buckets).
### 4. Start AutoMQ
Start the AutoMQ cluster with Docker Compose:
```bash
docker-compose up -d