Note: This Post is for first-timers who are exploring frappe and erpnext and may tumble along the way esp. for developers who would also like to create a more standardized/containerized developer experience trying to test, develop & contribute to frappe and erpnext out. I do NOT benefit from promoting such posts.
I am beginning to try out frappe and setting up a dev instance on a Mac M1 OSX 13.x
I run the redis-cache, queue and mariadb from containers.
I have partially followed https://github.com/D-codE-Hub/ERPNext-installation-Guide/blob/main/README.md with the modification on the containerized part as mentioned earlier.
Now executing bench start
with this setup yields:
web.1 | 127.0.0.1 - - "GET / HTTP/1.1" 404 -
web.1 | 192.168.0.181 - - "GET / HTTP/1.1" 404 -
My project setup has the following common_site_config
:
{
"background_workers": 1,
"db_host": "0.0.0.0",
"db_name": "scott",
"db_password": "mypassword",
"admin_password": "tiger",
"file_watcher_port": 6787,
"frappe_user": "somename",
"gunicorn_workers": 17,
"live_reload": true,
"rebase_on_pull": false,
"redis_cache": "redis://0.0.0.0:6378",
"redis_queue": "redis://0.0.0.0:11000",
"redis_socketio": "redis://localhost:13000",
"restart_supervisor_on_update": false,
"restart_systemd_on_update": false,
"serve_default_site": true,
"shallow_clone": true,
"socketio_port": 9000,
"use_redis_auth": false,
"webserver_port": 8000,
"root_password": "tiger"
}
Docker compose is:
version: '3'
networks:
thebridge:
driver: bridge
services:
mariadb:
image: mariadb:latest
container_name: mariadb_container
volumes:
- ./infra/config/my.cnf:/etc/mysql/my.cnf
environment:
MYSQL_ROOT_PASSWORD: tiger
MYSQL_DATABASE: scott
MYSQL_USER: admin
MYSQL_PASSWORD: mypassword
ports:
- "3306:3306"
networks:
- thebridge
redis:
image: redis:latest
container_name: redis_container
ports:
- "6378:6379"
networks:
- thebridge
redis-queue:
build:
context: .
dockerfile: Dockerfile.rq
container_name: redis_queue_container
environment:
REDIS_HOST: redis_container
depends_on:
- redis
networks:
- thebridge
ports:
- "11000:11000"
Dockerfile.rq is
FROM python:3.11-slim-buster
RUN apt-get update && apt-get install -y \
libssl-dev \
libffi-dev \
python3-dev \
python3-pip \
python3-setuptools
RUN pip3 install -U pip redis rq
ENTRYPOINT ["bash", "-c", "rq worker -v --url redis://redis_container:6379"]
is there a migration setup or frontend setup required for the site to load?