--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "dokploy_network Resource - dokploy" subcategory: "" description: |- A Docker network managed by Dokploy. Attach services to it with network_ids on dokploy_application, dokploy_compose and the database resources. Every service also joins the shared dokploy-network unless detach_dokploy_network is set. ~> Docker networks are immutable. Dokploy has no update endpoint, so changing any attribute replaces the network — which detaches the services currently using it until they redeploy. --- # dokploy_network (Resource) A Docker network managed by Dokploy. Attach services to it with `network_ids` on `dokploy_application`, `dokploy_compose` and the database resources. Every service also joins the shared `dokploy-network` unless `detach_dokploy_network` is set. ~> Docker networks are immutable. Dokploy has no update endpoint, so changing any attribute replaces the network — which detaches the services currently using it until they redeploy. ## Schema ### Required - `name` (String) Name of the Docker network. ### Optional - `attachable` (Boolean) Allow standalone containers to attach to an overlay network. - `driver` (String) Network driver. Use `overlay` for multi-node Swarm clusters and `bridge` for a single host. Valid values: `bridge`, `overlay`. - `enable_ipv4` (Boolean) Enable IPv4 address allocation. - `enable_ipv6` (Boolean) Enable IPv6 address allocation. - `internal` (Boolean) Isolate the network from external access. - `ipam` (String) Custom IP address management, as a JSON object with `subnet`, `gateway` and `ipRange` keys. Leave unset to let Docker choose a subnet. - `mtu` (Number) Maximum transmission unit for the network. Leave unset to use Docker's default. - `server_id` (String) Remote server to create the network on. Omit to use the Dokploy host itself. ### Read-Only - `created_at` (String) RFC 3339 timestamp of when the network was created. - `id` (String) Unique network identifier. - `organization_id` (String) Organization that owns the network.