version: '3.7'
services:
  debian-sid:
    # build and run tests in a debian sid container
    image: ${DOCKER_REGISTRY}/mod-h2-debian-sid:0.0.1
    container_name: mod-h2-debian-sid
    build:
      context: .
      dockerfile: docker/debian-sid/Dockerfile
      labels:
        - "description=mod_h2 debian sid server"
        - "maintainer=stefan@eissing.org"
    expose:
      - "42001"
      - "42002"
    volumes:
      - mod-h2-debian-sid-data:/apache-httpd/data
    ports:
      - "42001"
      - "42002"

  archlinux:
    # build and run tests in a debian sid container
    image: ${DOCKER_REGISTRY}/mod-h2-archlinux:0.0.1
    container_name: mod-h2-archlinux
    build:
      context: .
      dockerfile: docker/archlinux/Dockerfile
      labels:
        - "description=mod_h2 archlinux server"
        - "maintainer=stefan@eissing.org"
    expose:
      - "42001"
      - "42002"
    volumes:
      - mod-h2-archlinux-data:/apache-httpd/data
    ports:
      - "42001"
      - "42002"

  ubuntu-focal:
    # build and run tests in a ubuntu-focal container
    image: ${DOCKER_REGISTRY}/mod-h2-ubuntu-focal:0.0.1
    container_name: mod-h2-ubuntu-focal
    build:
      context: .
      dockerfile: docker/ubuntu-focal/Dockerfile
      labels:
        - "description=mod_h2 ubuntu-focal server"
        - "maintainer=stefan@eissing.org"
    expose:
      - "42001"
      - "42002"
    volumes:
      - mod-h2-ubuntu-focal-data:/apache-httpd/data
    ports:
      - "42001"
      - "42002"

volumes:
  mod-h2-debian-sid-data:
    name: mod-h2-debian-sid-data
    labels:
      - "description=debian sid data for mod_h2"
      - "maintainer=stefan@eissing.org"

  mod-h2-archlinux-data:
    name: mod-h2-archlinux-data
    labels:
      - "description=archlinux data for mod_h2"
      - "maintainer=stefan@eissing.org"

  mod-h2-ubuntu-focal-data:
    name: mod-h2-ubuntu-focal-data
    labels:
      - "description=ubuntu-focal data for mod_h2"
      - "maintainer=stefan@eissing.org"


