Skip to content

Commit

Permalink
Merge pull request #24 from NL-TCH/docker-compose
Browse files Browse the repository at this point in the history
add docker-compose file
  • Loading branch information
billz authored Jan 15, 2024
2 parents 3d4a5cd + e3979ad commit d6d7f72
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ RUN apt update && apt install -y sudo wget procps curl systemd iproute2 && rm -r
RUN curl -sL https://install.raspap.com | bash -s -- --yes --wireguard 1 --openvpn 1 --adblock 1
COPY firewall-rules.sh /home/firewall-rules.sh
RUN chmod +x /home/firewall-rules.sh
CMD [ "/bin/bash", "-c", "/home/firewall-rules.sh && /lib/systemd/systemd" ]
CMD [ "/bin/bash", "-c", "/home/firewall-rules.sh && /lib/systemd/systemd" ]
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ iptables -C FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACC
iptables -C FORWARD -i wlan0 -o eth0 -j ACCEPT || iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT
iptables-save
```
## Deploying using docker-compose
use the docker-compose.yaml file to deploy raspap using docker compose.
**Do not use 'docker-compose' but use 'docker compose'**
```bash
git clone https://github.com/RaspAP/raspap-docker.git
cd raspap-docker
docker compose up -d
```
14 changes: 14 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: "3.8"
services:
raspap:
container_name: raspap
image: ghcr.io/raspap/raspap-docker:latest
#build: .
privileged: true
network_mode: host
#cgroup: host # uncomment when using an ARM device
cap_add:
- SYS_ADMIN
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
restart: unless-stopped

0 comments on commit d6d7f72

Please sign in to comment.