Skip to content

Commit dcf4444

Browse files
committed
fix(docker): expose PHP XDebug port
1 parent 2949c14 commit dcf4444

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/docker.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ with lib;
4141
storageDriver = mkIf config.host.btrfs.enable "btrfs";
4242
};
4343

44+
networking = {
45+
firewall.allowedTCPPorts = [
46+
9003 # required so PHP XDebug can reach host machine
47+
];
48+
};
49+
4450
security.wrappers = mkIf config.host.docker.rootless.enable {
4551
docker-rootlesskit = {
4652
owner = "root";

0 commit comments

Comments
 (0)