#version: '3'

services:
    oraclelinux_chrony:
        stdin_open: true
        tty: true
        container_name: oraclelinuxntp
        ports:
            - 0.0.0.0:123:123
        runtime: io.containerd.runc.v2
        environment:
            - TZ=Europe/Berlin
           
            - NETWORK_IF=ens6
           
            - NTP_SERVERS="demogitjava.ddns.net"
           
            #- QEMU_CPU=2
            #- QEMU_RAM=1024
        extra_hosts:
            - demogitjava.ddns.net:217.160.255.254
        platform: linux/amd64
        network_mode: host
        hostname: demogitjava.ddns.net
        restart: unless-stopped
        cap_add:
            - SYS_TIME
        devices:
            - /dev/kvm
        image: jgsoftwares/oraclelinux_chrony:latest
        
networks:
  wan:
    name: wan
    driver: ipvlan
    #driver: macvlan
    driver_opts:
      parent: eth0
    ipam:
      config:
        - subnet: 217.160.255.254/32
          gateway: 217.160.255.254