# GRAVITY DHCP Only node (port mode) # In IP variable, prefer using the real host IP, this determine the hostname of DHCP node. services: gravity: # Important for this to be static and unique container_name: gravity-DHCP-node-${IP}-${PORT} hostname: gravity-DHCP-node-${IP}-${PORT} image: ghcr.io/beryju/gravity:stable restart: unless-stopped ports: - ${IP}:${PORT}:8008 # Web Port - ${IP}:67:67/tcp # DHCP Service Port TCP - ${IP}:67:67/udp # DHCP Service Port UDP volumes: - ${DATA_DIR}:/data environment: ADMIN_PASSWORD: ${PASSWORD} BOOTSTRAP_ROLES: dhcp;api;etcd;discovery;monitoring;tsdb # The default log level of info logs DHCP and DHCP queries, so ensure # the logs aren't filling up the disk logging: driver: json-file options: max-size: "10m" max-file: "3"