--- name: portainer networks: portainer_net: attachable: false internal: false external: false name: portainer driver: bridge ipam: driver: default config: - subnet: 172.20.1.0/24 ip_range: 172.20.1.0/24 gateway: 172.20.1.1 driver_opts: com.docker.network.bridge.default_bridge: "false" com.docker.network.bridge.enable_icc: "true" com.docker.network.bridge.enable_ip_masquerade: "true" com.docker.network.bridge.host_binding_ipv4: "0.0.0.0" com.docker.network.bridge.name: "portainer" com.docker.network.driver.mtu: "1500" labels: com.portainer.network.description: "is an isolated bridge network." services: portainer_app: deploy: resources: limits: pids: 512 # Limits the number of processes and threads (fork bomb protection). restart: always logging: driver: "json-file" options: max-size: "1M" max-file: "2" stop_grace_period: 1m container_name: portainer image: docker.io/portainer/portainer-ee:3.1.0@sha256:8fd951c7f9cc63d9cfa953f2127eacbe5a0ac1b2ec5f62a79cddcbcfb1674b5d pull_policy: if_not_present volumes: - /docker/portainer/production/app:/data - /var/run/docker.sock:/var/run/docker.sock environment: TZ: Europe/Amsterdam # Adjust the timezone to match your local timezone. You can find the full list of timezones here https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. domainname: portainer.local # Customize this with your own domain, e.g., `portainer.local` to `portainer.your-fqdn-here.com`. hostname: portainer networks: portainer_net: ipv4_address: 172.20.1.2 ports: - "8000:8000/tcp" # Edge agents - "9443:9443/tcp" # HTTPS security_opt: - no-new-privileges:true labels: com.portainer.description: "deploy, configure, troubleshoot and secure containers." healthcheck: disable: true