# ───────────────────────────────────────────────────────────────────────────── # NetMap — Docker Hub image compose file # # Quick start: # 1. Edit the environment values below. # 2. docker compose up -d # ───────────────────────────────────────────────────────────────────────────── services: netmap: image: xoriin/netmap:latest container_name: netmap environment: APP_ENV: production DATABASE_URL: sqlite:////app/data/netmap.db DATA_DIR: /app/data # Match the container's internal user to your host user so bind mounts # are writable. Run `id` on the host to find your UID and GID. PUID: 1000 PGID: 1000 # Web UI port. Change if 8080 is already in use on the host. APP_PORT: 8080 # Public URL used to build password-reset links in emails. # Set this if you use a reverse proxy or a non-default port. APP_URL: http://netmap.example.com:8080 # Required: replace these before first start. SECRET_KEY: replace-with-a-long-random-secret MASTER_KEY: replace-with-a-fernet-key # LAN installs only: accepts any Host header. For internet-facing deployments # replace with exact hostnames, e.g. ["netmap.example.com"]. TRUSTED_HOSTS: '["*"]' # Set true only when served behind a TLS-terminating reverse proxy. SECURE_HSTS_ENABLED: "false" # AUTH_COOKIE_SECURE: "false" # unset = Secure cookies whenever APP_URL is https:// TRUSTED_PROXY_IPS: '["127.0.0.1"]' LOG_LEVEL: info EVENT_RETENTION_DAYS: "7" FIREWALL_LOG_RETENTION_DAYS: "7" SYSLOG_ENABLED: "true" SYSLOG_UDP_ENABLED: "true" SYSLOG_TCP_ENABLED: "true" SYSLOG_HOST: 0.0.0.0 SYSLOG_UDP_PORT: "1514" SYSLOG_TCP_PORT: "1514" # SYSLOG_SENDER_ALLOWLIST: '["192.168.1.1","10.0.0.0/8"]' ACTIVE_NETWORK_PUBLIC_TARGETS_ENABLED: "false" volumes: - /mnt/change/this/netmap:/app/data ports: - "8080:8080" - "5514:1514/udp" - "5514:1514/tcp" restart: unless-stopped logging: driver: "json-file" options: max-size: "10m" max-file: "5"