start with a new database - apache doris

July 4, 2026

apache doris

an open source database - for analytical workloads. Keeping this docker compose file because I had to fight surprisingly long to get it running.

I want to experiment with with doris as an observability storage backend.

start with docker compose (doris 4 on ubuntu)
services:
  doris-fe:
    image: apache/doris:fe-4.1.2
    container_name: doris-fe
    hostname: doris-fe
    ports:
      - "8030:8030"
      - "9030:9030"
    environment:
      - FE_ID=1
      - FE_SERVERS=fe1:172.20.0.10:9010
      - FE_ADDR=172.20.0.10:9010
      - FE_CONF_priority_networks=172.20.0.0/16
    volumes:
      - ./fe/meta:/opt/apache-doris/fe/meta
    tmpfs:
      - /sys/fs/cgroup:rw
    networks:
      doris-net:
        ipv4_address: 172.20.0.10

  doris-be:
    image: apache/doris:be-4.1.2
    container_name: doris-be
    hostname: doris-be
    depends_on:
      - doris-fe
    ports:
      - "8040:8040"
      - "9050:9050"
    environment:
      - FE_SERVERS=fe1:172.20.0.10:9010
      - BE_CONF_priority_networks=172.20.0.0/16
      - BE_ID=1
      - BE_ADDR=172.20.0.20:9050
    volumes:
      - ./be/storage:/opt/apache-doris/be/storage
    networks:
      doris-net:
        ipv4_address: 172.20.0.20

networks:
  doris-net:
    driver: bridge
    ipam:
      config:
        - subnet: 172.20.0.0/16