From 4349e287c2aff6939fa172afefb21f2ba748727b Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Tue, 18 Feb 2025 15:28:20 +0100 Subject: [PATCH] Create docker-compose.yml --- docker-compose.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2d4c43e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,23 @@ +version: "3.8" + +services: + dynamic-dns: + build: . + container_name: dynamic_dns_server + ports: + - "${LISTEN_PORT:-443}:443" + environment: + # Listening parameters. + - LISTEN_ADDR=0.0.0.0 + - LISTEN_PORT=443 + # CA certificate and key paths (inside the container). + - CA_CERT_PATH=ssl/ca_cert.pem + - CA_KEY_PATH=ssl/ca_key.pem + # Block page file path. + - BLOCK_PAGE_PATH=webroot/block.html + volumes: + # Mount the directory containing your CA files. + - ./ssl:/root/ssl + # Mount your custom webroot (containing block.html, CSS, images, etc.) + - ./webroot:/root/webroot + restart: unless-stopped