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