[HELP] Docker-Compose setup #1619
-
What happened?I am trying to setup the complete stack using docker-compose, I have added my compose.yaml Kindly guide/suggest if my compose file is ok or needs to be updated. How to reproduce?docker-compose up Configuration file(s) (yaml or .env)version: "3.5"
services:
bunkerweb:
image: bunkerity/bunkerweb:1.5.9
ports:
- 80:8080
- 443:8443
labels:
- "bunkerweb.INSTANCE=yes"
environment:
- SERVER_NAME=www.example.com
- API_WHITELIST_IP=127.0.0.0/8 10.20.30.0/24
networks:
- bw-universe
- bw-services
bw-scheduler:
image: bunkerity/bunkerweb-scheduler:1.5.9
depends_on:
- bunkerweb
- bw-docker
volumes:
- bw-data:/data
environment:
- DOCKER_HOST=tcp://bw-docker:2375
networks:
- bw-universe
- bw-docker
bw-docker:
image: tecnativa/docker-socket-proxy:nightly
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- CONTAINERS=1
- LOG_LEVEL=warning
networks:
- bw-docker
volumes:
bw-data:
networks:
bw-universe:
name: bw-universe
ipam:
driver: default
config:
- subnet: 10.20.30.0/24
bw-services:
name: bw-services
bw-docker:
name: bw-docker Relevant log outputbunker_waf-bw-scheduler-1 | Traceback (most recent call last):
bunker_waf-bw-scheduler-1 | File "/usr/local/lib/python3.12/pathlib.py", line 1311, in mkdir
bunker_waf-bw-scheduler-1 | os.mkdir(self, mode)
bunker_waf-bw-scheduler-1 | FileExistsError: [Errno 17] File exists: '/var/cache/bunkerweb'
bunker_waf-bw-scheduler-1 |
bunker_waf-bw-scheduler-1 | During handling of the above exception, another exception occurred:
bunker_waf-bw-scheduler-1 |
bunker_waf-bw-scheduler-1 | Traceback (most recent call last):
bunker_waf-bw-scheduler-1 | File "/usr/share/bunkerweb/scheduler/main.py", line 41, in <module>
bunker_waf-bw-scheduler-1 |
bunker_waf-bw-scheduler-1 | CACHE_PATH.mkdir(parents=True, exist_ok=True)
bunker_waf-bw-scheduler-1 | File "/usr/local/lib/python3.12/pathlib.py", line 1320, in mkdir
bunker_waf-bw-scheduler-1 | if not exist_ok or not self.is_dir():
bunker_waf-bw-scheduler-1 | ^^^^^^^^^^^^^
bunker_waf-bw-scheduler-1 | File "/usr/local/lib/python3.12/pathlib.py", line 875, in is_dir
bunker_waf-bw-scheduler-1 | return S_ISDIR(self.stat().st_mode)
bunker_waf-bw-scheduler-1 | ^^^^^^^^^^^
bunker_waf-bw-scheduler-1 | File "/usr/local/lib/python3.12/pathlib.py", line 840, in stat
bunker_waf-bw-scheduler-1 | return os.stat(self, follow_symlinks=follow_symlinks)
bunker_waf-bw-scheduler-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bunker_waf-bw-scheduler-1 | PermissionError: [Errno 13] Permission denied: '/var/cache/bunkerweb'
bunker_waf-bw-scheduler-1 | [2024-09-10 10:58:52] - ENTRYPOINT - ℹ️ - Scheduler stopped BunkerWeb version1.5.9 What integration are you using?Docker Linux distribution (if applicable)No response Removed private data
Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 16 comments
-
I had the same issue. just stop the services and delete the bunkerweb volume. Then restart them. It will regenerate all your certs and start from scratch but it will work. |
Beta Was this translation helpful? Give feedback.
-
I still get this error Can you add your compose file? |
Beta Was this translation helpful? Give feedback.
-
Hello @alwinhb, Can you try |
Beta Was this translation helpful? Give feedback.
-
@fl0ppy-d1sk Thanks it worked Now as i go to http://localhost:7000 As i add the admin username and password, I see this error Also I tried using http://localhost:7000/setup but it routes again to http://localhost:7000/login Can you guide on this error |
Beta Was this translation helpful? Give feedback.
-
Hi @alwinhb, sorry for the late response. Did you have a look at this ? |
Beta Was this translation helpful? Give feedback.
-
@TheophileDiot I get 403 error using below yaml
|
Beta Was this translation helpful? Give feedback.
-
@alwinhb how do you access the web UI ? |
Beta Was this translation helpful? Give feedback.
-
@TheophileDiot localhost:8080 Little change in my docker compose
|
Beta Was this translation helpful? Give feedback.
-
Do you try to access it via |
Beta Was this translation helpful? Give feedback.
-
Yeah and I get - Access is forbidden to the requested page |
Beta Was this translation helpful? Give feedback.
-
@alwinhb Did you edit your hosts file by adding this entry ?
If not that's the issue, you should be able to access the web UI via |
Beta Was this translation helpful? Give feedback.
-
@TheophileDiot - This issue is resolved - "Access is forbidden now", But now I get a blank page with text - "Nothing to see here" I want to setup and add my configurations but I don't see setup page with /setup. |
Beta Was this translation helpful? Give feedback.
-
@alwinhb if you want to use the setup wizard, you have to follow this tutorial : https://docs.bunkerweb.io/latest/web-ui/#setup-wizard |
Beta Was this translation helpful? Give feedback.
-
@TheophileDiot Thanks for the link, I tried using the docker compose yaml present at this link but Still I get - "Nothing to see here" Can you guide me with the right docker compose.yaml that I can use for my local setup? |
Beta Was this translation helpful? Give feedback.
-
Hi @alwinhb, if you want you can request for community support on our official discord server ! There is also tailored support available on our panel via the PRO version. |
Beta Was this translation helpful? Give feedback.
-
Hi @alwinhb, we greatly simplified our documentation so you can have a setup up and running in just a few minutes: https://docs.bunkerweb.io/latest/quickstart-guide/ |
Beta Was this translation helpful? Give feedback.
Hi @alwinhb, we greatly simplified our documentation so you can have a setup up and running in just a few minutes: https://docs.bunkerweb.io/latest/quickstart-guide/