Skip to content

Commit

Permalink
Merge pull request #33 from RaspAP/restapi-support
Browse files Browse the repository at this point in the history
Add container support for RestAPI
  • Loading branch information
billz authored Mar 13, 2024
2 parents e6885da + b233870 commit 3565335
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ RUN rm -f /lib/systemd/system/multi-user.target.wants/* \

VOLUME [ "/sys/fs/cgroup" ]

RUN curl -sL https://install.raspap.com | bash -s -- --yes --wireguard 1 --openvpn 1 --adblock 1
EXPOSE 8081

RUN curl -sL https://install.raspap.com | bash -s -- --yes --wireguard 1 --openvpn 1 --adblock 1 --rest 1
COPY firewall-rules.sh /home/firewall-rules.sh
COPY wpa_supplicant.conf /etc/wpa_supplicant/
RUN chmod +x /home/firewall-rules.sh
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ services:
container_name: raspap
image: ghcr.io/raspap/raspap-docker:latest
#build: .
ports:
- "8081:8081"
privileged: true
network_mode: host
#cgroup: host # uncomment when using an ARM device
#cgroup: host # uncomment when using an ARM device
environment:
- RASPAP_SSID=raspap-webgui
- RASPAP_SSID_PASS=ChangeMe
Expand Down

0 comments on commit 3565335

Please sign in to comment.