Problem with creating custom erpnext_documentation docker-compose
See original GitHub issueDescription of the issue
Hi,
i would like to get Home page of erpnext_documentation as it is described here.
The problem is that when i login to my site, i got home page “Login to Frappe”.
Steps to reproduce the issue
my docker-compose:
version: "3.7"
services:
erp-doc:
image: erp-nginx
command: sleep infinity
environment:
- FRAPPE_PY=erpnext-python
- FRAPPE_PY_PORT=8000
- FRAPPE_SOCKETIO=frappe-socketio
- SOCKETIO_PORT=9000
volumes:
- ./sites:/var/www/html/sites:rw
- ./assets:/assets:rw
ports:
- "8050:80"
erpnext-python:
image: erp-worker
restart: on-failure
environment:
- MARIADB_HOST=mariadb
- REDIS_CACHE=redis-cache:6379
- REDIS_QUEUE=redis-queue:6379
- REDIS_SOCKETIO=redis-socketio:6379
- SOCKETIO_PORT=9000
- AUTO_MIGRATE=1
volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw
- ./assets:/home/frappe/frappe-bench/sites/assets:rw
mariadb:
image: mariadb:10.3
restart: on-failure
environment:
- MYSQL_ROOT_PASSWORD=123
volumes:
- ./frappe-mariadb.cnf:/etc/mysql/conf.d/frappe.cnf
- ./mariadb:/var/lib/mysql
frappe-socketio:
image: frappe/frappe-socketio:develop
restart: on-failure
depends_on:
- redis-socketio
volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw
erpnext-schedule:
image: erp-worker
restart: on-failure
command: schedule
depends_on:
- redis-queue
- redis-cache
volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw
- ./logs:/home/frappe/frappe-bench/logs:rw
erpnext-worker-long:
image: erp-worker
restart: on-failure
command: worker
environment:
- WORKER_TYPE=long
depends_on:
- redis-queue
- redis-cache
volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw
erpnext-worker-short:
image: erp-worker
restart: on-failure
command: worker
environment:
- WORKER_TYPE=short
depends_on:
- redis-queue
- redis-cache
volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw
- ./logs:/home/frappe/frappe-bench/logs:rw
erpnext-worker-default:
image: erp-worker
restart: on-failure
command: worker
depends_on:
- redis-queue
- redis-cache
volumes:
- ./sites:/home/frappe/frappe-bench/sites:rw
- ./logs:/home/frappe/frappe-bench/logs:rw
redis-cache:
image: redis:latest
restart: on-failure
redis-queue:
image: redis:latest
restart: on-failure
redis-socketio:
image: redis:latest
restart: on-failure
# site-creator:
# image: erp-worker
# restart: "no"
# command: new
# depends_on:
# - erpnext-python
# environment:
# - SITE_NAME=erpdoc.mydomain.com
# - DB_ROOT_USER=root
# - MYSQL_ROOT_PASSWORD=123
# - ADMIN_PASSWORD=admin
# - INSTALL_APPS=erpnext_documentation
# volumes:
# - ./sites:/home/frappe/frappe-bench/sites:rw
erp-nginx image created from Dockerfile erp-worker image created from Dockerfile
So, i run once site-creator
container to create new site. Then opened page erpdoc.mydomain.com
and got Login to Frappe instead of erpnext_documentation page.
Btw. when i run docker-compose up
firstly i got 500 Internal Server Error when tried to login erpdoc.mydomain.com
, i noticed that inside erp-doc
container service nginx status
is nginx is not running
so manually start it using command nginx
.
I tried also login to erpnext-python
container and run
install_app frappe_theme https://github.com/frappe/frappe_theme
bench --site erpdoc.mydomain.com install_app erpnext_documentation
bench --site erpdoc.mydomain.com migrate
but still got only Frappe Login Page. What im doing wrong?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top GitHub Comments
Read the docs, development needs site names to be
anything.localhost
https://github.com/frappe/frappe_docker/tree/develop/development#create-a-new-site-with-bench
docker-compose.yml
:inside
frappe
container:history
:As is is written here i run
bench start
and opened new tab in frappe container and run:Then tried to open page
erp.mydomain.com
and still Frappe login page.