Skip to content

Commit

Permalink
Add Docker Compose instructions to the FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
lipanski committed Feb 27, 2024
1 parent 6a737a7 commit fdf25eb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,26 @@ Add a `httpd.conf` file, listing the paths that should be protected and the corr

Read the [source code comments](https://git.busybox.net/busybox/tree/networking/httpd.c).

### How can I run this in Docker Compose?

Create a `docker-compose.yml` file:

```
---
version: "3.9"
services:
webserver:
image: lipanski/docker-static-website:latest
restart: always
ports:
- "3000:3000"
volumes:
- /some/local/path:/home/static
- ./httpd.conf:/home/static/httpd.conf:ro
```

Make sure to change `/some/local/path` to the path to your static files. Include an empty or valid `httpd.conf` file.

## Development

Clone the [busybox repo](https://git.busybox.net/busybox/tree) and create a blank config:
Expand Down

0 comments on commit fdf25eb

Please sign in to comment.