Blame distribution/docker-compose.yml

Packit Service 3a6627
version: '2.4'
Packit Service 3a6627
services:
Packit Service 3a6627
  composer:
Packit Service 3a6627
    image: local/osbuild-composer
Packit Service 3a6627
    build:
Packit Service 3a6627
      context: ..
Packit Service 3a6627
      dockerfile: ./distribution/Dockerfile-ubi
Packit Service 3a6627
    volumes:
Packit Service 3a6627
      - ${CONTAINER_CONFIG_DIR}/:/etc/osbuild-composer
Packit Service 3a6627
    networks:
Packit Service 3a6627
      net:
Packit Service 3a6627
        ipv4_address: 172.30.0.10
Packit Service 3a6627
  worker:
Packit Service 3a6627
    image: local/osbuild-worker
Packit Service 3a6627
    build:
Packit Service 3a6627
      context: ..
Packit Service 3a6627
      dockerfile: ./distribution/Dockerfile-worker
Packit Service 3a6627
    # override the entrypoint to specify composer hostname and port
Packit Service 3a6627
    entrypoint: /usr/libexec/osbuild-composer/osbuild-worker composer:8700
Packit Service 3a6627
    volumes:
Packit Service 3a6627
      - ${CONTAINER_CONFIG_DIR}/:/etc/osbuild-composer
Packit Service 3a6627
    environment:
Packit Service 3a6627
      - CACHE_DIRECTORY=/var/cache/osbuild-worker
Packit Service 3a6627
    privileged: true
Packit Service 3a6627
    cap_add:
Packit Service 3a6627
      - MKNOD
Packit Service 3a6627
      - SYS_ADMIN
Packit Service 3a6627
      - NET_ADMIN
Packit Service 3a6627
    networks:
Packit Service 3a6627
      net:
Packit Service 3a6627
        ipv4_address: 172.30.0.20
Packit Service 3a6627
    depends_on:
Packit Service 3a6627
      - "composer"
Packit Service 3a6627
Packit Service 3a6627
networks:
Packit Service 3a6627
  net:
Packit Service 3a6627
    ipam:
Packit Service 3a6627
      driver: default
Packit Service 3a6627
      config:
Packit Service 3a6627
        - subnet: 172.30.0.0/16