From 4c4deef94402cce7448e5bff1fb416084a3ea701 Mon Sep 17 00:00:00 2001 From: Inga Date: Tue, 6 Sep 2022 13:35:31 +0200 Subject: [PATCH] access to webapps in container --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index 1f237ad..a01ba6d 100644 --- a/README.md +++ b/README.md @@ -629,6 +629,23 @@ ssh CONTAINER_IP With keys-based auth: TODO +### Webdev + +#### Accessing dev sites running inside container + +In container: `doas apk add squid`, and edit `/etc/squid/squid/conf` accordingly +(most likely you'll only need to change local network definition to match the subnet shared between the host and the container). + +Then: +``` +doas rc-update add squid +doas rc-service squid start +``` + +(Note that squid requires devfs service to be running). + +In host, create new FF profile (`about:profiles`) for that purpose, and configure it to use squid proxy running inside of container. + ### Docker For container terminal apps to be usable: