From 3689f9bc5e11623420fdced2541b5411a544d759 Mon Sep 17 00:00:00 2001 From: "H. M. Irfan Sadiq" Date: Tue, 29 Apr 2025 18:40:11 +0500 Subject: [PATCH] Add docker-compose.yml Signed-off-by: H. M. Irfan Sadiq --- README.md | 6 ++++++ docker-compose.yml | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 docker-compose.yml diff --git a/README.md b/README.md index 466629d..d8adcf0 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,12 @@ using Docker, you can add the `--net=host` option when running the container: docker run -it --rm --net=host ferrarimarco/pxe ``` +or if you like docker compose + +```shell +docker compose up -d +``` + The container image is also available on GitHub container registry: [`ghcr.io/ferrarimarco/pxe`](https://github.com/ferrarimarco/docker-pxe/pkgs/container/pxe). This container image is multi-platform, and supports the following platforms: diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..00e9151 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +services: + docker-pxe: + image: pxe + build: . + network_mode: host + cap_add: + - NET_ADMIN