service "backend" is not running container 1 @shubham-samant
See original GitHub issueYou have to add -p
or --project-name
to your operations commands
like this :
docker compose -p ai-team-erp exec backend bench new-site sitename.com --mariadb-root-password admin@123 --admin-pssword admin@123
It will work like this.
@pv4n check if that helps you!
_Originally posted by @sdfateh in https://github.com/frappe/frappe_docker/issues/924#issuecomment-1247921795_
I did the following:
docker compose -f compose.yaml \
-f overrides/compose.noproxy.yaml \
-f overrides/compose.erpnext.yaml \
-f overrides/compose.mariadb.yaml \
-f overrides/compose.redis.yaml \
config > ~/gitops/docker-compose.yml
docker compose --project-name erp -f ~/gitops/docker-compose.yml up -d
docker compose exec backend bench new-site erpsite --mariadb-root-password <same as .env password> --admin-password <password> --install-app chat --project-name erp
docker ps: IMAGE COMMAND CREATED STATUS PORTS NAMES frappe/erpnext-nginx:v14.1.0 “/docker-entrypoint.…” 20 hours ago Up 20 hours 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp erp-frontend-1 frappe/erpnext-worker:v14.1.0 “bench worker --queu…” 20 hours ago Up 20 hours erp-queue-default-1 frappe/erpnext-worker:v14.1.0 “/home/frappe/frappe…” 20 hours ago Up 20 hours erp-backend-1 frappe/erpnext-worker:v14.1.0 “bench worker --queu…” 20 hours ago Up 20 hours erp-queue-long-1 frappe/erpnext-worker:v14.1.0 “bench schedule” 20 hours ago Up 20 hours erp-scheduler-1 frappe/frappe-socketio:v14.6.0 “docker-entrypoint.s…” 20 hours ago Up 20 hours erp-websocket-1 frappe/erpnext-worker:v14.1.0 “bench worker --queu…” 20 hours ago Up 20 hours erp-queue-short-1 mariadb:10.6 “docker-entrypoint.s…” 20 hours ago Up 20 hours (healthy) 3306/tcp erp-db-1 redis:6.2-alpine “docker-entrypoint.s…” 20 hours ago Up 20 hours 6379/tcp erp-redis-1
Still getting:
service "backend" is not running container #1
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top GitHub Comments
@pv4n You have to pass -p <project_name> for the docker compose exec command as well. Eg:
Hope that helps!
if it is set to
$host
it’ll auto pick from host headerhttps://nginx.org/en/docs/http/ngx_http_core_module.html#var_host