How to acess erpnext after docker pull of all repository containers

I have tried docker pull for each item in frappe repository.After this what is the next step to access the site ?

Just pulling the images won’t do anything.
Docker documentation https://docs.docker.com

Try one of the following:

Production deployment documentation https://github.com/frappe/frappe_docker/blob/develop/docs/single-bench.md

Developer environment documentation. https://github.com/frappe/frappe_docker/blob/develop/development/README.md

It is recommend to understand docker and docker-compose before using docker.

When I do all the docker-composer setps for single bench I get Insternal Server Error
The Log file shows following output
frappe@erp:~/frappe_docker$ docker logs proj_site-creator_1 -f
Attempt 1 to connect to mariadb:3306
Attempt 2 to connect to mariadb:3306
Attempt 3 to connect to mariadb:3306
Attempt 4 to connect to mariadb:3306
Attempt 5 to connect to mariadb:3306
Attempt 6 to connect to mariadb:3306
Attempt 7 to connect to mariadb:3306
Attempt 8 to connect to mariadb:3306
Attempt 1 to connect to redis-queue:6379
Attempt 1 to connect to redis-cache:6379
Attempt 1 to connect to redis-socketio:6379
Connections OK
Site proj already exists

Because the site creator container was running second time.

Either remove the site directory and db manually.

Or just stop and clean containers and volumes and try again.

docker stop $(docker ps -q)
docker system prune -f && docker volume prune -f

I am using docker based mariadb 10.3 and its IP I found using

docker inspect -f ‘{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}’ mariadbtest

but I have put this IP in MARIADB_HOST it is showing in logs

Connection to MariaDB timed out

I have even tried local installation on Mariadb but still it does not connect

I get “Bad Gateway” when I visit site

container’s hostname is mariadb

No need to find IP.

I just tried on https://labs.play-with-docker.com

git clone https://github.com/frappe/frappe_docker.git && cd frappe_docker
export HYPHEN_IP=$(ip a | grep "scope global eth1" | awk '{print $2}' | sed 's|\(.*\)/.*|\1|' | sed "s/\./-/g")
export SITE_NAME=ip$HYPHEN_IP-$SESSION_ID-80.direct.$PWD_HOST_FQDN
cp env-local .env
sed -i -e 's|mysite.localhost|'$SITE_NAME'|g' .env
sed -i -e 's|edge|v12|g' .env
docker-compose up -d

# Check progress of site creation
docker logs frappe_docker_site-creator_1 -f

echo "http://$SITE_NAME"

The above script is working as expected.

Sorry I am newbie to docker concept.

  1. I need to understand if the mariab docker will be cloned when we do
git clone https://github.com/frappe/frappe_docker.git

or do we need to run mariadb in separate container

I am getting “Can’t connect to MySQL server on ‘mariadb’ ([Errno 111] Connection refused)”)

my env file for productioin environment is

LETSENCRYPT_EMAIL=abc@gmail.com
ERPNEXT_VERSION=version-12
FRAPPE_VERSION=version-12
MARIADB_HOST=mariadb
MYSQL_ROOT_PASSWORD=TopSecret
SITE_NAME=erp.mydomain.com.
SITES=erp.mydomain.com
DB_ROOT_USER=root
ADMIN_PASSWORD=TopSecret
INSTALL_APPS=erpnext
ENTRYPOINT_LABEL=traefik.http.routers.erpnext-nginx.entrypoints=websecure
CERT_RESOLVER_LABEL=traefik.http.routers.erpnext-nginx.tls.certresolver=myresolver
HTTPS_REDIRECT_RULE_LABEL=traefik.http.routers.http-catchall.rule=hostregexp({host:.+})
HTTPS_REDIRECT_ENTRYPOINT_LABEL=traefik.http.routers.http-catchall.entrypoints=web
HTTPS_REDIRECT_MIDDLEWARE_LABEL=traefik.http.routers.http-catchall.middlewares=redirect-to-https
HTTPS_USE_REDIRECT_MIDDLEWARE_LABEL=traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https

Mariadb image will be pulled along with all other images mentioned in docker-compose.yml

Is there a trailing dot here? (.)
Remove it.

Is there a trailing dot here? (.)

Not in original .env Mistake while posting on forum
It’s Working Now

I followed the instructions on this site

https://github.com/frappe/frappe_docker/wiki/Easiest-Install

It did install erpnext properly after changing

FRAPPE_VERSION=version-12
to
FRAPPE_VERSION=v12.9.4
and
ERPNEXT_VERSION=version-12
to
ERPNEXT_VERSION=v12.6.2

The only thing that does not work as of now is the letsencypt probably It exceeded the limits for the week.

It’s showing scheduler disabled Do I need to do anything for this

No.

What was the logs for site creator container?

The first log

Attempt 1 to connect to mariadb:3306
Attempt 2 to connect to mariadb:3306
Attempt 3 to connect to mariadb:3306
Attempt 4 to connect to mariadb:3306
Attempt 5 to connect to mariadb:3306
Attempt 6 to connect to mariadb:3306
Attempt 1 to connect to redis-queue:6379
Attempt 1 to connect to redis-cache:6379
Attempt 1 to connect to redis-socketio:6379
Connections OK
Created user _a490c176d8514fd9
Created database _a490c176d8514fd9
Granted privileges to user _a490c176d8514fd9 and database _a490c176d8514fd9
Starting database import…
Imported from database /home/frappe/frappe-bench/apps/frappe/frappe/database/mariadb/framework_mariadb.sql

Installing frappe...
Updating DocTypes for frappe        : [========================================]
Updating country info               : [========================================]

Installing erpnext...
Updating DocTypes for erpnext       : [========================================]
Updating customizations for Address
*** Scheduler is disabled ***

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.