Skip to content

Commit

Permalink
Merge pull request #33 from lucio97/main
Browse files Browse the repository at this point in the history
Add Docker Compose Section and Fix Duplicate --name Flag
  • Loading branch information
origamiofficial authored Oct 30, 2024
2 parents 9ee2508 + 6a1bd24 commit 26feba0
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ The architectures supported by this image are:
| armel || linux/arm/v6 |

## Usage
### Docker run
Here are the commands you'll need:
```bash
docker run -d --name pihole-unbound \
docker run -d \
--name=pihole-unbound \
-e TZ=Europe/London `#optional` \
-p 53:53/tcp -p 53:53/udp \
Expand All @@ -36,6 +37,40 @@ docker run -d --name pihole-unbound \
rlabinc/pihole-unbound:latest
```

### Docker Compose

To deploy this project using Docker Compose, you can use the following example `docker-compose.yml`:

```yaml
version: '3'

services:
pihole-unbound:
image: rlabinc/pihole-unbound:latest
container_name: pihole-unbound
environment:
- TZ=Europe/London # Adjust timezone as needed
- WEBPASSWORD=qwerty123 # Set a secure password
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp" #Pi-hole web interface port
restart: always
```
This example configuration will run Pi-hole with Unbound, listening on port 53 for DNS queries and port 80 for the web interface.
Make sure to adjust the environment variables, password, and timezone according to your setup.
To start the container, use:
```bash
docker-compose up -d
```

To stop the container, use:
```bash
docker-compose down
```

### Docker Tags
The Docker tags supported by this image are:

Expand Down

0 comments on commit 26feba0

Please sign in to comment.