version: '3'

# debug image 
# runs only the landingpage 


# commands 
# docker compose build
# docker compose up



services:
    
    oraclelinux_openjdk_landingpage_debug:
        stdin_open: true
        tty: true
        #ports:
        #    - 0.0.0.0:80:80
        #    - 0.0.0.0:5005:5005
        environment:
            - JAVA_DEBUG=true
            - TZ=Europe/Berlin
            - NTP_SERVER=2.rhel.pool.ntp.org
            - NETWORK_IF=eth0
            - QEMU_PORTS='80'
            - QEMU_PORTS='5005'
            - QEMU_CPU=2
            - QEMU_RAM=1024
            - enable-kvm 
        blkio_config:
            weight: 100
        extra_hosts:
            - demogitjava.ddns.net:217.160.255.254
        runtime: io.containerd.runc.v2
        container_name: oraclelinuxlandingpagedebug
        network_mode: host
        hostname: demogitjava.ddns.net
        volumes:
            - /etc/resolv.conf:/etc/resolv.conf
        restart: unless-stopped
        cap_add:
            - NET_ADMIN
        platform: linux/amd64
        cpu_quota: "2000"
        cpu_period: "2000"
        cpu_shares: 1024
        isolation: default
        devices:
            - /dev/kvm
        image: jgsoftwares/oraclelinux_openjdk_landingpage:debug
        command: /bin/bash /root/runlandingpage.sh 