frappe_docker
frappe_docker copied to clipboard
unable to access http://development.localhost:8000 in dev development
Description of the issue
Trying to access http://development.localhost:8000 from browser loads infinitely when running dev-container
Context information (for bug reports)
I followed the steps mentioned in Development container. However after running the bench start command I am not able to access the website in host machine. However if I do a curl http://development.localhost:8000
inside container itself I am getting a response with HTML page.
PS: I am using MacOS as host machine
Steps to reproduce the issue
- Take a macOS laptop
-
cp -R devcontainer-example .devcontainer
-
cp -R development/vscode-example development/.vscode
- open
.devcontainer/docker-compose.yml
and comment outMariaDB and its volume
and uncommentPostgresDB and its volume
- Run dev container in VS code with appropriate extensions as mentioned
- Inside container run
bench init --skip-redis-config-generation frappe-bench && cd frappe-bench
- setup host
bench set-config -g db_host mariadb
bench set-config -g redis_cache redis://redis-cache:6379
bench set-config -g redis_queue redis://redis-queue:6379
bench set-config -g redis_socketio redis://redis-queue:6379
- Create new site
bench new-site --db-type postgres --db-host postgresql development.localhost
- set root password
bench config set-common-config -c root_login postgres
bench config set-common-config -c root_password '"123"'
- set dev mode in site
bench --site development.localhost set-config developer_mode 1
bench --site development.localhost clear-cache
-
bench start
- go to http://development.localhost:8000 in host machine
Observed result
- No HTTP call is received from HOST machine by the app inside docker container.
Expected result
- http://development.localhost:8000 serving frappe login page